4 # Provides: pve-manager
5 # Required-Start: $remote_fs pveproxy qemu-server pvestatd
6 # Required-Stop: $remote_fs pveproxy qemu-server pvestatd
7 # Default-Start: 2 3 4 5
9 # Short-Description: PVE VM Manager
12 .
/lib
/lsb
/init-functions
14 PATH
=/sbin
:/bin
:/usr
/bin
:/usr
/sbin
15 DESC
="PVE Status Daemon"
18 test -f $PVESH ||
exit 0
20 # Include defaults if available
21 if [ -f /etc
/default
/pve-manager
] ; then
22 .
/etc
/default
/pve-manager
27 if [ "$START" = "no" ]; then
30 echo "Starting VMs and Containers"
31 pvesh
--nooutput create
/nodes
/localhost
/startall
34 echo "Stopping running Backup"
36 echo "Stopping VMs and Containers"
37 pvesh
--nooutput create
/nodes
/localhost
/stopall
39 reload|restart|force-reload
)
44 echo "Usage: $N {start|stop|reload|restart|force-reload}" >&2