]> git.proxmox.com Git - vzctl.git/blobdiff - debian/patches/fix-init.d-depends.diff
do not start any VEs with openvz init script
[vzctl.git] / debian / patches / fix-init.d-depends.diff
index d3d2e87ea25d26e1eb26792058e915a20963888d..04c77996dfe84a822082ac6b79dc9161c9efc854 100644 (file)
@@ -1,7 +1,7 @@
 Index: new/etc/init.d/vz-redhat.in
 ===================================================================
 --- new.orig/etc/init.d/vz-redhat.in   2012-02-10 06:40:03.000000000 +0100
-+++ new/etc/init.d/vz-redhat.in        2012-04-18 10:18:43.000000000 +0200
++++ new/etc/init.d/vz-redhat.in        2012-04-20 09:20:53.000000000 +0200
 @@ -25,8 +25,8 @@
  
  ### BEGIN INIT INFO
@@ -28,7 +28,7 @@ Index: new/etc/init.d/vz-redhat.in
 +      sysctl -q -w net.ipv4.route.src_check=0
 +
 +      if [ -x ${PVECTL} ]; then
-+          ${PVECTL} startall
++          # pve-manager should start the containers
 +          return;
 +      fi
 +
@@ -40,15 +40,3 @@ Index: new/etc/init.d/vz-redhat.in
        for veid in $velist; do
                [ "${veid}" = "0" ] && continue
                __echo "Starting CT ${veid}: "
-@@ -312,6 +320,11 @@
-       local quota
-       local pids
-+      if [ -x ${PVECTL} ]; then
-+          ${PVECTL} stopall
-+          # fallback to openvz stop script
-+      fi
-+
-       if get_veinfo; then
-               get_parallel
-               for i in 0 1 2; do