From: Enrico Scholz Date: Thu, 18 Mar 2004 05:35:30 +0000 (+0000) Subject: call isVserverRunning to cleanup rundir X-Git-Tag: VERSION_0_10~271 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a4a9a1370d7a103cd55f00834e87d3b1a5abd14;p=util-vserver.git call isVserverRunning to cleanup rundir git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1303 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/scripts/vserver.stop b/util-vserver/scripts/vserver.stop index 207d7a0..b117826 100644 --- a/util-vserver/scripts/vserver.stop +++ b/util-vserver/scripts/vserver.stop @@ -53,6 +53,10 @@ fi sendKillSequence "$S_CONTEXT" "${INITKILL_SEQ[@]}" +## Small hack... isVserverRunning removes stale runfiles as a sideeffect +! isVserverRunning "$VSERVER_DIR" || \ + echo $"Vserver '$VSERVER_DIR' still running unexpectedly; please investigate it manually..." >&2 + execScriptlets "$VSERVER_DIR" "$VSERVER_NAME" post-stop umountVserver "$VSERVER_DIR" || :