From: Gunnar Beutner Date: Tue, 2 Sep 2014 11:40:33 +0000 (+0200) Subject: Use LSB-compliant exit codes for the init script X-Git-Tag: v2.1.1~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dde00a3f16827a63fb52ba70e6a2d56683808a09;p=icinga2 Use LSB-compliant exit codes for the init script fixes #7044 --- diff --git a/etc/initsystem/icinga2.init.d.cmake b/etc/initsystem/icinga2.init.d.cmake index d53c37551..de5679c7a 100644 --- a/etc/initsystem/icinga2.init.d.cmake +++ b/etc/initsystem/icinga2.init.d.cmake @@ -21,14 +21,14 @@ if [ -f $SYSCONFIGFILE ]; then . $SYSCONFIGFILE else echo "Can't load system specific defines from $SYSCONFIGFILE." - exit 1 + exit 6 fi -test -x $DAEMON || exit 0 +test -x $DAEMON || exit 5 if [ ! -e $ICINGA2_CONFIG_FILE ]; then echo "Config file '$ICINGA2_CONFIG_FILE' does not exist." - exit 1 + exit 6 fi # Get function from functions library @@ -99,7 +99,7 @@ reload() { echo "Done" else echo "Error: Icinga not running" - exit 3 + exit 7 fi } @@ -136,7 +136,7 @@ status() { echo "Running" else echo "Not running" - exit 3 + exit 7 fi } @@ -165,6 +165,6 @@ case "$1" in ;; *) echo "Usage: $0 {start|stop|restart|reload|checkconfig|status}" - exit 1 + exit 3 esac exit 0