diff --git a/docs/monitorix.init b/docs/monitorix.init index 4f294f1..d8f336a 100755 --- a/docs/monitorix.init +++ b/docs/monitorix.init @@ -77,7 +77,13 @@ case "$1" in fi ;; status) - status $PROG + if [ -f /var/lock/subsys/$PROG ] ; then + status $PROG + exit 0 + else + status $PROG + exit 1 + fi ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}"