Check for missing binary with init.d script part2

Change-Id: I366714a51ba54aa28ee676b34e641bfea49eef52
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-10-08 16:17:12 -04:00
parent 7ae472381d
commit e30c9048d9
4 changed files with 16 additions and 4 deletions

View File

@ -23,7 +23,10 @@ USER=nodepool
DAEMON=$PREFIX/bin/nodepoold
# Exit if the package is not installed
[ -x "$DAEMON" ] || (echo "$DAEMON: command not found" && exit 5)
if ! [ -x "$DAEMON" ]; then
echo "$DAEMON: command not found"
exit 5
fi
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

View File

@ -23,7 +23,10 @@ USER=nodepool
DAEMON=$PREFIX/bin/nodepool-builder
# Exit if the package is not installed
[ -x "$DAEMON" ] || (echo "$DAEMON: command not found" && exit 5)
if ! [ -x "$DAEMON" ]; then
echo "$DAEMON: command not found"
exit 5
fi
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

View File

@ -23,7 +23,10 @@ USER=nodepool
DAEMON=$PREFIX/bin/nodepoold
# Exit if the package is not installed
[ -x "$DAEMON" ] || (echo "$DAEMON: command not found" && exit 5)
if ! [ -x "$DAEMON" ]; then
echo "$DAEMON: command not found"
exit 5
fi
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

View File

@ -23,7 +23,10 @@ USER=nodepool
DAEMON=$PREFIX/bin/nodepoold
# Exit if the package is not installed
[ -x "$DAEMON" ] || (echo "$DAEMON: command not found" && exit 5)
if ! [ -x "$DAEMON" ]; then
echo "$DAEMON: command not found"
exit 5
fi
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh