]> git.pld-linux.org Git - packages/util-vserver.git/commitdiff
- fix script
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 22 Nov 2005 16:44:01 +0000 (16:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    vservers.init -> 1.3

vservers.init

index 1745295c10320e270d0b3875b3181d890cb45b15..4628414774269feb7eacf3510215557db368751d 100644 (file)
@@ -46,7 +46,7 @@ start)
                exit 1
        fi
 
-       if [ is_yes "$STARTALL" ]; then
+       if is_yes "$STARTALL"; then
                if [ ! -f /var/lock/subsys/vservers-all ]; then
                        show "Starting all types of vservers"
                        busy
@@ -99,7 +99,7 @@ stop)
                rm -f /var/lock/subsys/vserver-$VSERVER
        done
 
-       if [ is_yes "$STARTALL" ]; then
+       if is_yes "$STARTALL"; then
                if [ -f /var/lock/subsys/vservers-all ]; then
                        show "Stopping all types of vservers"
                        busy
@@ -131,7 +131,7 @@ status)
        for i in /var/lock/subsys/vservers-*; do
                [ -f "$i" ] || continue
                echo $i | awk '{gsub("/var/lock/subsys/vservers-",""); printf(" %s\n",$0); }'
-               local running="true"
+               running="true"
        done
 
        if [[ "${running}" != "true" ]]; then
@@ -152,7 +152,7 @@ status)
        /usr/sbin/vserver-stat
        ;;
 *)
-       echo "Usage: $0 {start|stop|restart|status}"
+       echo "Usage: $0 {start|stop|status}"
        exit 1
        ;;
 esac
This page took 0.047789 seconds and 4 git commands to generate.