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:
parent
2f6300cf03
commit
bd36e3cb52
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue