Fixed init script to work with chef properly

This commit is contained in:
josten 2014-05-20 11:51:19 -04:00
parent 9512d5b8ab
commit 92e8b8ce49
1 changed files with 7 additions and 1 deletions

View File

@ -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}"