#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: 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