]> git.proxmox.com Git - pve-ha-manager.git/blob - debian/pve-ha-lrm.service
use systemd condition to avoid daemon startup when ha is disabled
[pve-ha-manager.git] / debian / pve-ha-lrm.service
1 [Unit]
2 Description=PVE Local HA Ressource Manager Daemon
3 ConditionPathExists=/usr/sbin/pve-ha-lrm
4 ConditionPathExists=/etc/pve/ha/resources.cfg
5 Requires=pve-cluster.service
6 Wants=pvedaemon.service
7 After=pve-cluster.service
8 After=pvedaemon.service
9
10 [Service]
11 ExecStart=/usr/sbin/pve-ha-lrm start
12 ExecStop=/usr/sbin/pve-ha-lrm stop
13 PIDFile=/var/run/pve-ha-lrm.pid
14 TimeoutStopSec=60
15 Type=forking
16
17 [Install]
18 WantedBy=multi-user.target