From 2280b802c70223579ed3be79d1b4e8334784308b Mon Sep 17 00:00:00 2001 From: Jay Weisskopf Date: Wed, 4 Jan 2012 03:32:12 -0600 Subject: [PATCH] Fixed an error in the init script's status function. --- debian/shellinabox.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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