mirror of https://github.com/mikaku/Monitorix.git
Fixed init script to work with chef properly
This commit is contained in:
parent
9512d5b8ab
commit
92e8b8ce49
|
@ -77,7 +77,13 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
status)
|
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}"
|
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
|
||||||
|
|
Loading…
Reference in New Issue