]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
d/rules: update to systemd dh changes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 24 May 2021 09:36:57 +0000 (11:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 24 May 2021 09:37:01 +0000 (11:37 +0200)
both, `override_dh_systemd_enable` and `override_dh_systemd_start`
are ignored with current compat level 12, and will become an error in
level >= 13, so drop them and use `override_dh_installsystemd` for
both of the previous uses.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/rules

index 358e0c5030b36fc70c5e58df10a643a2d300d836..a7a3f6c0b3e165469434156541d61ad9e2e7b8a5 100755 (executable)
@@ -31,12 +31,8 @@ override_dh_missing:
 
 # 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
+override_dh_installsystemd:
+       dh_installsystemd -ppve-ha-manager --name watchdog-mux --no-restart-after-upgrade --no-stop-on-upgrade watchdog-mux.service
+       # restart LRM first, else single-node clusters with configured HA will deadlock
+       dh_installsystemd -ppve-ha-manager --name pve-ha-lrm pve-ha-lrm.service
+       dh_installsystemd -ppve-ha-manager --name pve-ha-crm pve-ha-crm.service