Workaround kernel oddities.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 2 Mar 2008 14:04:29 +0000 (14:04 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 2 Mar 2008 14:04:29 +0000 (14:04 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2698 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver-build.functions

index 2f22192..f615cad 100644 (file)
@@ -264,7 +264,7 @@ function base.setSuccess
 function startSleepingGuest
 {
     local guest="$1"
-    local timeout="$2"
+    local timeout="${2:-15}"
     $_VSERVER "$guest" start --rescue --rescue-init bash -c "
        exec  > /dev/null
        exec 2> /dev/null
@@ -278,5 +278,5 @@ function startSleepingGuest
 function stopSleepingGuest
 {
     local guest="$1"
-    $_VKILL --xid "$guest" -s INT -- 1
+    $_VKILL --xid "$guest" -s INT -- 0
 }