]> git.proxmox.com Git - corosync-pve.git/commitdiff
restart on upgrades instead of stop-wait-start
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 7 Mar 2017 14:15:48 +0000 (15:15 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 7 Mar 2017 14:21:49 +0000 (15:21 +0100)
otherwise the long downtime while waiting for other packages
to finish unpacking and installing can lead to problems

e.g., a dist-upgrade from Jessie to Stretch might take over
5 minutes to get from running the old version's prerm (with
stop) and the new version's postinst (with start).

debian/rules

index 4c37c6002046612d6086f9538a424c8ce134b30d..937d3024c8a3f6504b5cdb45c1499ea211e0724a 100755 (executable)
@@ -27,5 +27,5 @@ override_dh_auto_configure:
 override_dh_systemd_enable:
        dh_systemd_enable -pcorosync-pve --name corosync
 
-#override_dh_systemd_start:
-#      dh_systemd_start -pcorosync-pve --name corosync --no-start
+override_dh_systemd_start:
+       dh_systemd_start -pcorosync-pve --name corosync --restart-after-upgrade -r