Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #62 from orangain/feature-status-exit-code
Browse files Browse the repository at this point in the history
deb: status action return non-zero when services are stopped

exit code of status action should be non-zero when services are not running.

GitHub: #62

Patch by @orangain. Thanks!!!
  • Loading branch information
kenhys committed Jun 19, 2013
2 parents 25e00fe + 1291421 commit 321183e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/debian/groonga-httpd.init
Expand Up @@ -174,6 +174,7 @@ case "$1" in
;;
status)
do_status
exit $?
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2
Expand Down
1 change: 1 addition & 0 deletions packages/debian/groonga-server-gqtp.init
Expand Up @@ -219,6 +219,7 @@ case "$1" in
;;
status)
do_status
exit $?
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2
Expand Down
1 change: 1 addition & 0 deletions packages/debian/groonga-server-http.init
Expand Up @@ -225,6 +225,7 @@ case "$1" in
;;
status)
do_status
exit $?
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2
Expand Down

0 comments on commit 321183e

Please sign in to comment.