Commit b583d6f7 authored by Wolfgang Link's avatar Wolfgang Link Committed by Dietmar Maurer

Bug#579: add START parameter in /etc/default/pve-manager

add check if START Parameter is set in FILE: /etc/default/pve-manager
If START="no" NO VM will start if pve-manager start is called
If START!="no" or not present, VMs will use the boot_at_start Flag
Signed-off-by: 's avatarWolfgang Link <wolfgang@linksystems.org>
parent bfebec03
......@@ -17,8 +17,16 @@ PVESH=/usr/bin/pvesh
test -f $PVESH || exit 0
# Include defaults if available
if [ -f /etc/default/pve-manager ] ; then
. /etc/default/pve-manager
fi
case "$1" in
start)
if [ "$START" = "no" ]; then
exit 0
fi
echo "Starting VMs and Containers"
pvesh --nooutput create /nodes/localhost/startall
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment