[pve-devel] [PATCH ha-manager 2/3] lrm: crm: show interest in pve-api-update trigger
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Oct 11 15:10:19 CEST 2017
To ensure that the LRM and CRM services get reloaded when
pve-api-update trigger gets activated.
Important, as we directly use perl API modules from qemu-server,
pve-container, pve-common and really want to avoid to run outdated,
possible problematic or deprecated, code.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
debian/postinst | 2 ++
debian/triggers | 1 +
2 files changed, 3 insertions(+)
diff --git a/debian/postinst b/debian/postinst
index 385f78f..770572b 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -20,6 +20,8 @@ case "$1" in
triggered)
# We don't print a status message here, as dpkg already said
# "Processing triggers for ...".
+ systemctl --quiet is-active pve-ha-lrm.service && deb-systemd-invoke reload-or-try-restart pve-ha-lrm.service
+ systemctl --quiet is-active pve-ha-crm.service && deb-systemd-invoke reload-or-try-restart pve-ha-crm.service
exit 0;;
configure)
diff --git a/debian/triggers b/debian/triggers
index 59dd688..fda3139 100644
--- a/debian/triggers
+++ b/debian/triggers
@@ -1 +1,2 @@
activate-noawait pve-api-updates
+interest-noawait pve-api-updates
--
2.11.0
More information about the pve-devel
mailing list