From 14202ecc93d9cc9204b6c261e75212ab7dee38ed Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 10 Oct 2016 09:15:33 -0400 Subject: [PATCH] Notifiy user is DAEMON is missing Add a helpful message that the zuul binaries are missing from init.d scripts. Change-Id: I703b2c5cce3a09d0330063cb65097dc7041648bc Signed-off-by: Paul Belanger --- files/etc/init.d/zuul-launcher | 5 ++++- files/etc/init.d/zuul-merger | 5 ++++- files/etc/init.d/zuul-server | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/files/etc/init.d/zuul-launcher b/files/etc/init.d/zuul-launcher index d38c9b8..509c881 100644 --- a/files/etc/init.d/zuul-launcher +++ b/files/etc/init.d/zuul-launcher @@ -25,7 +25,10 @@ DAEMON=$PREFIX/bin/zuul-launcher USER=${RUNASUSER:-zuul} # Exit if the package is not installed -[ -x "$DAEMON" ] || 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 diff --git a/files/etc/init.d/zuul-merger b/files/etc/init.d/zuul-merger index 805393f..30336cd 100644 --- a/files/etc/init.d/zuul-merger +++ b/files/etc/init.d/zuul-merger @@ -25,7 +25,10 @@ DAEMON=$PREFIX/bin/zuul-merger USER=${RUNASUSER:-zuul} # Exit if the package is not installed -[ -x "$DAEMON" ] || 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 diff --git a/files/etc/init.d/zuul-server b/files/etc/init.d/zuul-server index 9816ad9..3111706 100644 --- a/files/etc/init.d/zuul-server +++ b/files/etc/init.d/zuul-server @@ -23,7 +23,10 @@ DAEMON=$PREFIX/bin/zuul-server USER=${RUNASUSER:-zuul} # Exit if the package is not installed -[ -x "$DAEMON" ] || 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