Commit 79263cf7 authored by anarcat's avatar anarcat

fix status, remove old logging message

parent 25735cc0
......@@ -89,12 +89,17 @@ case "$1" in
esac
;;
status)
status_of_proc -p $PIDFILE "$DAEMON" "$NAME" && exit 0 || exit $?
if ps `cat $PIDFILE`; then
echo $DESC is running
exit 0
else
ret=$?
echo "$DESC is not running"
exit $ret
;;
reload|force-reload)
echo "Reloading $DESC"
do_reload
log_end_msg $?
;;
restart)
#
......
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