]> andersk Git - test.git/commitdiff
Fixed an error in the init script's status function.
authorJay Weisskopf <jay@jayschwa.net>
Wed, 4 Jan 2012 09:32:12 +0000 (03:32 -0600)
committerJay Weisskopf <jay@jayschwa.net>
Wed, 4 Jan 2012 09:35:11 +0000 (03:35 -0600)
debian/shellinabox.init

index db22f816d3aac7e40cf313c5ff598d77b99f94c1..a15a1b727a15e66839f1e52cc40258309920a4ca 100755 (executable)
@@ -89,7 +89,7 @@ d_reload() {
 #       Function that check the status of the daemon/service.
 #
 d_status() {
-  [ -r "$PIDFILE" && kill -0 `cat "$PIDFILE"` ] &&
+  [ -r "$PIDFILE" ] && kill -0 `cat "$PIDFILE"` &&
     echo "$DESC is running" || echo "$DESC is not running"
 }
 
@@ -117,7 +117,7 @@ case "$1" in
         ;;
     status)
         d_status
-       ;;
+        ;;
     *)
         echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|reload}" >&2
         exit 1
This page took 2.519644 seconds and 5 git commands to generate.