Navigation Menu

Skip to content

Commit

Permalink
deb: status action return non-zero when services are stopped
Browse files Browse the repository at this point in the history
According to [LSB][1], exit code should be non-zero when the services
are not running.

This fix is useful for automated monitoring or testing.

[1]: http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
  • Loading branch information
orangain committed Jun 18, 2013
1 parent 2ea5c20 commit 1291421
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 1291421

Please sign in to comment.