[pve-devel] [PATCH manager 1/8] postinst: cleanup trigger code
Fabian Grünbichler
f.gruenbichler at proxmox.com
Tue Mar 13 10:46:35 CET 2018
reload-or-try-restart works just fine even if the unit is stopped or
disabled
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
debian/postinst | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/debian/postinst b/debian/postinst
index 62ea8903..9f2b95a7 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -18,11 +18,10 @@ case "$1" in
test -f /etc/pve/local/pve-ssl.pem || exit 0;
test -e /proxmox_install_mode && exit 0;
- # Note: reload-or-try-restart fails if service is not active
- systemctl --quiet is-active pvedaemon.service && deb-systemd-invoke reload-or-try-restart pvedaemon.service
- systemctl --quiet is-active pvestatd.service && deb-systemd-invoke reload-or-try-restart pvestatd.service
- systemctl --quiet is-active pveproxy.service && deb-systemd-invoke reload-or-try-restart pveproxy.service
- systemctl --quiet is-active spiceproxy.service && deb-systemd-invoke reload-or-try-restart spiceproxy.service
+ deb-systemd-invoke reload-or-try-restart pvedaemon.service
+ deb-systemd-invoke reload-or-try-restart pvestatd.service
+ deb-systemd-invoke reload-or-try-restart pveproxy.service
+ deb-systemd-invoke reload-or-try-restart spiceproxy.service
exit 0;;
--
2.14.2
More information about the pve-devel
mailing list