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: Iccd96abecddc53727d911ef0fa8fa8f70b5a7b78
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-09-05 12:56:35 -04:00
parent 2f6300cf03
commit bd36e3cb52
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -4,6 +4,6 @@
# The prefix used when nodepool-builder was installed. Be sure to update this
# value if you are using a virtualenv.
PREFIX=/usr
PREFIX=/usr/local
DIB_IMAGE_CACHE=/opt/nodepool/cache

View File

@ -23,7 +23,7 @@ USER=nodepool
DAEMON=$PREFIX/bin/nodepoold
# 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=nodepool
DAEMON=$PREFIX/bin/nodepool-builder
# 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