From 9a4a9a1370d7a103cd55f00834e87d3b1a5abd14 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 18 Mar 2004 05:35:30 +0000 Subject: [PATCH] call isVserverRunning to cleanup rundir git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1303 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/scripts/vserver.stop | 4 ++++ 1 file changed, 4 insertions(+) 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" || : -- 1.8.1.5