Fix condrestart to actually do a conditional restart
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 12 Sep 2006 10:39:13 +0000 (10:39 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 12 Sep 2006 10:39:13 +0000 (10:39 +0000)
(https://savannah.nongnu.org/bugs/index.php?15678)

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

scripts/vserver

index 5187776..84166e9 100755 (executable)
@@ -208,7 +208,7 @@ case "$2" in
        $cmd "$@"
        ;;
     (condrestart)
-       test ! isVserverRunning "$VSERVER_DIR" || restart
+       ! isVserverRunning "$VSERVER_DIR" || restart
        ;;
     (exec)
        shift 2