call isVserverRunning to cleanup rundir
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 18 Mar 2004 05:35:30 +0000 (05:35 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 18 Mar 2004 05:35:30 +0000 (05:35 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1303 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver.stop

index 207d7a0..b117826 100644 (file)
@@ -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" || :