X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Fvshelper;h=2bd6ed16b24ae107a45af0a607d1db684d3a9020;hb=cc0e846b03b1250540445dd1f92083ee338898a2;hp=7fd7059632c261ef19386f06bdf605d6241b0a44;hpb=bd0454a515b140c582ce860e1ca218f4569c3287;p=util-vserver.git diff --git a/util-vserver/scripts/vshelper b/util-vserver/scripts/vshelper index 7fd7059..2bd6ed1 100755 --- a/util-vserver/scripts/vshelper +++ b/util-vserver/scripts/vshelper @@ -54,10 +54,12 @@ function doInternalMethod case "$ACTION" in (restart) logging $"Restarting vserver '$VSERVER'" + spawn killContext "$XID" execute $_VSERVER --defaulttty "$VSERVER" restart ;; (halt|poweroff) logging $"Stopping vserver '$VSERVER'" + spawn killContext "$XID" execute $_VSERVER --defaulttty "$VSERVER" stop ;; (swsusp) @@ -70,6 +72,10 @@ function doInternalMethod exit 1 esac ;; + + (async) + spawn killContext "$XID" + ;; (sync) local f=${METHOD_ARGS[0]} @@ -79,6 +85,7 @@ function doInternalMethod test -p "$f" || panic $"File '$f' which is required for synchronisation of vserver '$VSERVER' is not a pipe" + spawn killContext "$XID" echo "$ACTION" >"$f" ;;