add daemon reload commands
This commit is contained in:
parent
69d5f3b3c1
commit
41f2c45900
|
@ -1,9 +1,20 @@
|
||||||
post_install() {
|
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 enable
|
||||||
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global start
|
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global start
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
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 enable
|
||||||
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global restart
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user