[pve-devel] [PATCH] Bug#579:
Wolfgang Link
wolfgang at linksystems.org
Mon Nov 17 14:32:39 CET 2014
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: Wolfgang Link <wolfgang at linksystems.org>
---
bin/init.d/pve-manager | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bin/init.d/pve-manager b/bin/init.d/pve-manager
index e635f03..441e9d8 100755
--- a/bin/init.d/pve-manager
+++ b/bin/init.d/pve-manager
@@ -20,6 +20,10 @@ test -f $PVESH || exit 0
case "$1" in
start)
echo "Starting VMs and Containers"
+ [ -r /etc/default/pve-manager ] && . /etc/default/pve-manager
+ if [ "$START" = "no" ];then
+ exit 0
+ fi
pvesh --nooutput create /nodes/localhost/startall
;;
stop)
--
1.7.10.4
More information about the pve-devel
mailing list