X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fvserver.stop;h=7d1c01f6fa519ec1d3c66d03d5ae2ddc4413c899;hb=fc28db1eb4146796ec27c2fb15780d6303120261;hp=f1ac335931e5bc6926e23fbe66439523da83a5eb;hpb=8cf13bb177d92c93eb73dc8939777150536c2d00;p=util-vserver.git diff --git a/scripts/vserver.stop b/scripts/vserver.stop index f1ac335..7d1c01f 100644 --- a/scripts/vserver.stop +++ b/scripts/vserver.stop @@ -1,4 +1,4 @@ -# $Id: vserver.stop,v 1.29 2005/06/30 06:17:58 ensc Exp $ --*- sh -*-- +# $Id: vserver.stop 2312 2006-09-15 04:32:28Z dhozac $ --*- sh -*-- # Copyright (C) 2003 Enrico Scholz # @@ -84,7 +84,9 @@ else "${INITCMD_STOP[@]}" || fail=1 fi -test -n "$fail" || waitForSync "$VSERVER_DIR" "$sync_fifo" "$vwait_statdir" +vshelper.doStopSync + +waitForSync "$VSERVER_DIR" "$sync_fifo" "$vwait_statdir" vshelper.doDestroy "$VSERVER_DIR" "$S_CONTEXT" sendKillSequence "$S_CONTEXT" "${INITKILL_SEQ[@]}" @@ -98,4 +100,7 @@ execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" post-stop umountVserver "$VSERVER_DIR" || : disableInterfaces "$VSERVER_DIR" +saveDiskLimits "$VSERVER_DIR" + execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" postpost-stop +removeCPUSET "$VSERVER_DIR"