[pve-devel] [PATCH ha-manager 3/3] debian/rules: add some explaining comments

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Dec 20 11:34:03 CET 2017


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

diff --git a/debian/rules b/debian/rules
index a2be05a..468631f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,11 +12,14 @@
 %:
 	dh $@ --with=systemd
 
+# dh_systemd_enable watchdog-mux despite it being static to get it installed in
+# the correct location/package without manual intervention
 override_dh_systemd_enable:
 	dh_systemd_enable -ppve-ha-manager --name watchdog-mux watchdog-mux.service
 	dh_systemd_enable -ppve-ha-manager --name pve-ha-crm pve-ha-crm.service
 	dh_systemd_enable -ppve-ha-manager --name pve-ha-lrm pve-ha-lrm.service
 
+# restart LRM first, else single-node clusters with configured HA will deadlock
 override_dh_systemd_start:
 	dh_systemd_start -ppve-ha-manager --name pve-ha-lrm --restart-after-upgrade pve-ha-lrm.service
 	dh_systemd_start -ppve-ha-manager --name pve-ha-crm --restart-after-upgrade pve-ha-crm.service
-- 
2.14.2





More information about the pve-devel mailing list