Commit 7acae26f authored by anarcat's avatar anarcat

fail status properly if pidfile is gone

parent 527bc31d
......@@ -88,7 +88,7 @@ case "$1" in
esac
;;
status)
if ps `cat $PIDFILE` > /dev/null; then
if [ -r $PIDFILE ] && ps `cat $PIDFILE` > /dev/null; then
[ "$VERBOSE" != no ] && echo $DESC is running
exit 0
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment