Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #14 from hellofresh/feature/iss-13-status
Browse files Browse the repository at this point in the history
status command for init.d script
  • Loading branch information
endeveit authored Sep 23, 2016
2 parents 19b32c3 + f8d8b18 commit 1e66259
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _build/debian/kandalf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ PIDFILE=/var/run/$NAME.pid

test -x $DAEMON || exit 0

. /lib/lsb/init-functions

case "$1" in
start)
if start-stop-daemon --start -b -q -m -p $PIDFILE -c kandalf:kandalf -x $DAEMON -- $ARGS
Expand All @@ -46,8 +48,11 @@ case "$1" in
reload)
cat $PIDFILE | xargs kill -SIGHUP
;;
status)
status_of_proc -p $PIDFILE $DAEMON $NAME
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}" >&2
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|status}" >&2
exit 1
;;
esac
Expand Down

0 comments on commit 1e66259

Please sign in to comment.