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:
parent
7ae472381d
commit
e30c9048d9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue