[pve-devel] [PATCH firewall 7/7] use systemctl reload-or-restart on update
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Mar 1 12:20:21 CET 2016
dh_installinit's -R option uses 'restart' causing a
stop-start cycle with systemd. We really don't want that.
---
debian/postinst | 1 +
debian/rules | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/postinst b/debian/postinst
index 3c6963f..e611f47 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -4,6 +4,7 @@ set -e
case "$1" in
configure)
+ systemctl reload-or-restart pve-firewall
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/rules b/debian/rules
index 330174d..4a03d64 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,4 +8,4 @@
override_dh_installinit:
dh_installinit -R --name pvefw-logger
- dh_installinit -R -p pve-firewall
+ dh_installinit -p pve-firewall --no-restart-on-upgrade
--
2.1.4
More information about the pve-devel
mailing list