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