This check was correct the first time, (cond)restart just calls stop and start, so...
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 24 Sep 2006 17:44:24 +0000 (17:44 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 24 Sep 2006 17:44:24 +0000 (17:44 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2329 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver

index 3aee7c8..e3f1484 100755 (executable)
@@ -200,7 +200,7 @@ test "$2" != start -o -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR
     exec $_VNAMESPACE --new -- $_VSERVER ----nonamespace "${OPTIONS_ORIG[@]}"
 
 # Enter the namespace early so we can test for files inside the guest
-test "$2" != enter -a "$2" != stop -a "$2" != restart -a "$2" != condrestart || \
+test "$2" != enter -a "$2" != stop || \
     test -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR" || \
     ! isVserverRunning "$VSERVER_DIR" || \
     exec $_VNAMESPACE --enter "$VSERVER_DIR" -- $_VSERVER ----nonamespace "${OPTIONS_ORIG[@]}"