From 41f2c459001f2d0ad0ae68977a5409a85aead72d Mon Sep 17 00:00:00 2001 From: eSh Date: Sun, 18 Sep 2022 15:41:08 +0200 Subject: [PATCH] add daemon reload commands --- fixes-package.install | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fixes-package.install b/fixes-package.install index 57f0586..be3d745 100644 --- a/fixes-package.install +++ b/fixes-package.install @@ -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 +}