diff --git a/scripts/debian/lcdproc.LCDd.init b/scripts/debian/lcdproc.LCDd.init index c331427..2d49fad 100644 --- a/scripts/debian/lcdproc.LCDd.init +++ b/scripts/debian/lcdproc.LCDd.init @@ -11,7 +11,6 @@ # server daemon in the LCDproc suite ### END INIT INFO -set -e # local variables PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -35,12 +34,13 @@ if [ -z "${OPTIONS}" ]; then OPTIONS="-c /etc/lcdproc/LCDd.conf" fi -# sanity check -test -x $DAEMON || exit 0 +# installation check +test -x $DAEMON || exit 5 # load LSB 3.x init functions . /lib/lsb/init-functions + case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" @@ -59,7 +59,7 @@ case "$1" in ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 - exit 1 + exit 2 ;; esac diff --git a/scripts/debian/lcdproc.init b/scripts/debian/lcdproc.init index ced2cd7..da724a0 100644 --- a/scripts/debian/lcdproc.init +++ b/scripts/debian/lcdproc.init @@ -11,7 +11,6 @@ # status information viewer in the LCDproc suite ### END INIT INFO -set -e # local variables PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -30,12 +29,13 @@ if [ "${START}" != "yes" ]; then exit 0 fi -# sanity check -test -x $DAEMON || exit 0 +# installation check +test -x $DAEMON || exit 5 # load LSB 3.x init functions . /lib/lsb/init-functions + case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" @@ -54,7 +54,7 @@ case "$1" in ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 - exit 1 + exit 2 ;; esac diff --git a/scripts/debian/lcdproc.lcdexec.init b/scripts/debian/lcdproc.lcdexec.init index a235614..665c251 100644 --- a/scripts/debian/lcdproc.lcdexec.init +++ b/scripts/debian/lcdproc.lcdexec.init @@ -11,7 +11,6 @@ # start programs from the LCDd menu in the LCDproc suite ### END INIT INFO -set -e # local variables PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -30,12 +29,13 @@ if [ "${START}" != "yes" ]; then exit 0 fi -# sanity check -test -x $DAEMON || exit 0 +# installation check +test -x $DAEMON || exit 5 # load LSB 3.x init functions . /lib/lsb/init-functions + case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" @@ -54,7 +54,7 @@ case "$1" in ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 - exit 1 + exit 2 ;; esac diff --git a/scripts/debian/lcdproc.lcdvc.init b/scripts/debian/lcdproc.lcdvc.init index e77308a..a77ae4d 100644 --- a/scripts/debian/lcdproc.lcdvc.init +++ b/scripts/debian/lcdproc.lcdvc.init @@ -11,7 +11,6 @@ # console client in the LCDproc suite ### END INIT INFO -set -e # local variables PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -30,12 +29,13 @@ if [ "${START}" != "yes" ]; then exit 0 fi -# sanity check -test -x $DAEMON || exit 0 +# installation check +test -x $DAEMON || exit 5 # load LSB 3.x init functions . /lib/lsb/init-functions + case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" @@ -54,7 +54,7 @@ case "$1" in ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 - exit 1 + exit 2 ;; esac