If daemon is not installed, exit 5

According to documentation[1] we should use exit code 5 if program is
not installed. This also fixes a bug with our default PREFIX for
ubuntu.

[1] http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Change-Id: I5166cf4970a67cce7af3d2e88d5809e9814a8946
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-09-03 04:55:44 -04:00
parent ad61a59119
commit 485fe51dbd
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
6 changed files with 6 additions and 6 deletions

View File

@ -4,4 +4,4 @@
# The prefix used when zuul-launcher was installed. Be sure to update this value
# if you are using a virtualenv.
PREFIX=/usr
PREFIX=/usr/local

View File

@ -4,4 +4,4 @@
# The prefix used when zuul-merger was installed. Be sure to update this value
# if you are using a virtualenv.
PREFIX=/usr
PREFIX=/usr/local

View File

@ -4,4 +4,4 @@
# The prefix used when zuul-server was installed. Be sure to update this value
# if you are using a virtualenv.
PREFIX=/usr
PREFIX=/usr/local

View File

@ -25,7 +25,7 @@ USER=zuul
DAEMON=$PREFIX/bin/zuul-launcher
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
[ -x "$DAEMON" ] || exit 5
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

View File

@ -25,7 +25,7 @@ USER=zuul
DAEMON=$PREFIX/bin/zuul-merger
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
[ -x "$DAEMON" ] || exit 5
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

View File

@ -23,7 +23,7 @@ USER=zuul
DAEMON=$PREFIX/bin/zuul-server
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
[ -x "$DAEMON" ] || exit 5
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh