further adaption to LSB
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user