Skip to content

Commit

Permalink
fix debian systemV init script status command sbt#552
Browse files Browse the repository at this point in the history
  • Loading branch information
kardapoltsev committed Apr 26, 2015
1 parent aacce7f commit 28ca0c0
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,7 @@ case "$1" in
exit $?
;;
status)
start-stop-daemon --status --pidfile "$PIDFILE"
case "$?" in
0)
echo "${{app_name}} is running"
;;
1)
echo "${{app_name}} is not running and the pid file exists"
;;
3)
echo "${{app_name}} is not running"
;;
*)
echo "Unable to determine ${{app_name}} status"
;;
esac
exit $?
status_of_proc -p "$PIDFILE" "$RUN_CMD" ${{app_name}} && exit 0 || exit $?
;;
*)
log_daemon_msg "Usage: /etc/init.d/${{app_name}} {start|stop|restart|status}"
Expand Down

0 comments on commit 28ca0c0

Please sign in to comment.