From: Jay Weisskopf Date: Wed, 4 Jan 2012 09:32:12 +0000 (-0600) Subject: Fixed an error in the init script's status function. X-Git-Url: http://andersk.mit.edu/gitweb/test.git/commitdiff_plain/1db2316460a069031dbcbc2e3b5696bb32dd6109 Fixed an error in the init script's status function. --- diff --git a/debian/shellinabox.init b/debian/shellinabox.init index db22f81..a15a1b7 100755 --- a/debian/shellinabox.init +++ b/debian/shellinabox.init @@ -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