X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvshelper;h=0b44e22e13dbfcc5a9a4d2debae4a891037acd89;hb=e4615ec7e88fbf35ad843fb52189e0486053b66e;hp=7a7b2d4b360d69ef4d61d57adcfd53d83af916e1;hpb=45b62de23133f687e205da704d031bd322dd6702;p=util-vserver.git diff --git a/scripts/vshelper b/scripts/vshelper index 7a7b2d4..0b44e22 100755 --- a/scripts/vshelper +++ b/scripts/vshelper @@ -80,6 +80,10 @@ function doInternalMethod exit 0 ;; (restart2) ;; + (shutdown) + logging $"Cleaning up after vserver '$VSERVER'" + spawn $_VSERVER --defaulttty "$VSERVER" stop + ;; (*) warning $"Unknown action '$ACTION' for vserver '$VSERVER'" exit 1 @@ -178,7 +182,7 @@ while true; do responsible_xid=$pxid done -vserver_id=$($_VSERVER_INFO "$responsible_xid" ID) || +vserver_id=$($_VSERVER_INFO "$responsible_xid" ID) || test "$ACTION" = "shutdown" || panic $"No responsible vserver found for xid '$responsible_xid' ($XID); aborting..." test "$XID" = "$responsible_xid" || {