Fixed an error in the init script's status function.
This commit is contained in:
parent
8630c134a8
commit
2280b802c7
1 changed files with 2 additions and 2 deletions
4
debian/shellinabox.init
vendored
4
debian/shellinabox.init
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue