[pve-devel] [RFC stable-4 corosync-pve 1/2] restart on upgrades instead of stop-wait-start

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Mar 7 15:39:11 CET 2017


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).

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 4c37c60..937d302 100755
--- a/debian/rules
+++ b/debian/rules
@@ -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
-- 
2.1.4





More information about the pve-devel mailing list