fixed restart
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Tue, 12 Feb 2008 16:42:15 +0000 (16:42 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Tue, 12 Feb 2008 16:42:15 +0000 (16:42 +0000)
vsys-initscript

index 8ae12a1..58eb450 100755 (executable)
@@ -43,11 +43,12 @@ case "$1" in
         [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
         ;;
     restart)
-        stop
-        start
+        $0 stop
+        $0 start
+        RETVAL=$?
         ;;
     *)
-        echo $"Usage: $0 {start|stop}"
+        echo $"Usage: $0 {start|stop|restart}"
         exit 1
         ;;
 esac