- removed '#! /bin/bash' header
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 17 Oct 2003 21:03:26 +0000 (21:03 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 17 Oct 2003 21:03:26 +0000 (21:03 +0000)
- disable interfaces when vserver is not running

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@204 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver.stop

index 385ad96..347d2d4 100644 (file)
@@ -1,5 +1,4 @@
-#! /bin/bash
-# $Id$
+# $Id$  --*- sh -*--
 
 # Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
 #  
@@ -18,7 +17,8 @@
 
 if ! isVserverRunning "$VSERVER_DIR" S_CONTEXT; then
     echo $"vserver '$VSERVER_NAME' is not running; aborting..."
-    umountVserver "$VSERVER_DIR" &>/dev/null || :
+    umountVserver "$VSERVER_DIR"     &>/dev/null || :
+    disableInterfaces "$VSERVER_DIR" &>/dev/null || :
     exit 1
 fi