]> git.proxmox.com Git - pve-ha-manager.git/blame - debian/rules
debian/rules: add some explaining comments
[pve-ha-manager.git] / debian / rules
CommitLineData
ba878e35
DM
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# This file was originally written by Joey Hess and Craig Small.
5# As a special exception, when this file is copied by dh-make into a
6# dh-make output file, you may use that output file without restriction.
7# This special exception was added by Craig Small in version 0.37 of dh-make.
8
9# Uncomment this to turn on verbose mode.
10#export DH_VERBOSE=1
11
12%:
bcde32d4
DM
13 dh $@ --with=systemd
14
a6b98928
FG
15# dh_systemd_enable watchdog-mux despite it being static to get it installed in
16# the correct location/package without manual intervention
bcde32d4 17override_dh_systemd_enable:
449a03b7
FG
18 dh_systemd_enable -ppve-ha-manager --name watchdog-mux watchdog-mux.service
19 dh_systemd_enable -ppve-ha-manager --name pve-ha-crm pve-ha-crm.service
20 dh_systemd_enable -ppve-ha-manager --name pve-ha-lrm pve-ha-lrm.service
42ea821f 21
a6b98928 22# restart LRM first, else single-node clusters with configured HA will deadlock
42ea821f 23override_dh_systemd_start:
13cf3b88 24 dh_systemd_start -ppve-ha-manager --name pve-ha-lrm --restart-after-upgrade pve-ha-lrm.service
622cb56a 25 dh_systemd_start -ppve-ha-manager --name pve-ha-crm --restart-after-upgrade pve-ha-crm.service