Navigation Menu

Skip to content

Commit

Permalink
deb: simplify exit code handling
Browse files Browse the repository at this point in the history
exit code 3: groonga is not running.
exit code 4: can't confirm groonga service status
  • Loading branch information
kenhys committed Jun 24, 2013
1 parent 56b0b4d commit 7af3007
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/debian/groonga-server-http.init
Expand Up @@ -229,13 +229,13 @@ case "$1" in
0)
# service is OK
;;
1|2|3|4|5|6|7)
# curl can't connect to host, service status is unknown
exit 4
7)
# curl can't connect to host, program is not running
exit 3
;;
*)
# treat as program is not running
exit 3
# service status is unknown
exit 4
;;
esac
;;
Expand Down

0 comments on commit 7af3007

Please sign in to comment.