]> git.proxmox.com Git - pve-manager.git/blob - services/pve-guests.service
cleanup: rename bin/init.d to services
[pve-manager.git] / services / pve-guests.service
1 [Unit]
2 Description=PVE guests
3 ConditionPathExists=/usr/bin/pvesh
4 RefuseManualStart=true
5 RefuseManualStop=true
6 Wants=pvestatd.service
7 Wants=pveproxy.service
8 Wants=spiceproxy.service
9 Wants=pve-firewall.service
10 Wants=lxc.service
11 After=pveproxy.service
12 After=pvestatd.service
13 After=spiceproxy.service
14 After=pve-firewall.service
15 After=lxc.service
16 After=pve-ha-crm.service pve-ha-lrm.service
17
18 [Service]
19 Environment="PVE_LOG_ID=pve-guests"
20 ExecStart=/usr/bin/pvesh --nooutput create /nodes/localhost/startall
21 ExecStop=-/usr/bin/vzdump -stop
22 ExecStop=/usr/bin/pvesh --nooutput create /nodes/localhost/stopall
23 Type=oneshot
24 RemainAfterExit=yes
25 TimeoutSec=infinity
26
27 [Install]
28 WantedBy=multi-user.target
29 Alias=pve-manager.service