From 92e8b8ce4956d5986eada8acc6805de7b4e138aa Mon Sep 17 00:00:00 2001 From: josten Date: Tue, 20 May 2014 11:51:19 -0400 Subject: [PATCH] Fixed init script to work with chef properly --- docs/monitorix.init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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}"