add daemon reload commands

This commit is contained in:
Roma 2022-09-18 15:41:08 +02:00
parent 69d5f3b3c1
commit 41f2c45900

View File

@ -1,9 +1,20 @@
post_install() {
systemctl --global daemon-reload
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global enable
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global start
}
post_upgrade() {
systemctl --global daemon-reload
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global enable
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global restart
}
pre_remove() {
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global stop
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global disable
}
post_remove() {
systemctl --global daemon-reload
}