diff --git a/scripts/debian/control b/scripts/debian/control index 994aebd..e6f2af0 100644 --- a/scripts/debian/control +++ b/scripts/debian/control @@ -8,7 +8,7 @@ Standards-Version: 3.7.2.0 Package: lcdproc Architecture: any -Depends: ${shlibs:Depends}, debconf | debconf-2.0 +Depends: ${shlibs:Depends}, debconf | debconf-2.0, lsb-base (>= 3.0.10) Description: LCD display driver daemon and clients This is a client/server suite including drivers for all kinds of nifty LCD displays. The server supports several serial devices: Matrix diff --git a/scripts/debian/lcdproc.LCDd.init b/scripts/debian/lcdproc.LCDd.init index 5911bf5..c331427 100644 --- a/scripts/debian/lcdproc.LCDd.init +++ b/scripts/debian/lcdproc.LCDd.init @@ -1,12 +1,23 @@ #! /bin/sh -# -# /etc/init.d/LCDd lcdproc server starting and stopping -# -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +#### BEGIN INIT INFO +# Provides: LCDd +# Required-Start: $syslog $local_fs $network $remote_fs +# Required-Stop: $syslog $local_fs $network $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: LCDproc Server Daemon +# Description: Debian init script for LCDd, the display +# server daemon in the LCDproc suite +### END INIT INFO + +set -e + +# local variables +PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/LCDd NAME=LCDd -DESC="LCDproc server daemon" +DESC="LCDproc display server daemon" DEFAULTS=/etc/default/$NAME # Source defaults file; edit that file to configure this script. @@ -24,22 +35,22 @@ if [ -z "${OPTIONS}" ]; then OPTIONS="-c /etc/lcdproc/LCDd.conf" fi +# sanity check test -x $DAEMON || exit 0 -set -e +# load LSB 3.x init functions +. /lib/lsb/init-functions case "$1" in start) - echo -n "Starting $DESC: " - start-stop-daemon --start --quiet \ - --exec $DAEMON -- $OPTIONS - echo "$NAME." + log_daemon_msg "Starting $DESC" "$NAME" + start_daemon $DAEMON $OPTIONS + log_end_msg $? ;; stop) - echo -n "Stopping $DESC: " - start-stop-daemon --stop --oknodo --quiet \ - --exec $DAEMON - echo "$NAME." + log_daemon_msg "Stopping $DESC" "$NAME" + killproc $DAEMON + log_end_msg $? ;; restart|reload|force-reload) $0 stop @@ -47,9 +58,7 @@ case "$1" in $0 start ;; *) - N=/etc/init.d/$NAME - # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac diff --git a/scripts/debian/lcdproc.init b/scripts/debian/lcdproc.init index f77a8f1..ced2cd7 100644 --- a/scripts/debian/lcdproc.init +++ b/scripts/debian/lcdproc.init @@ -1,12 +1,23 @@ #! /bin/sh -# -# /etc/init.d/lcdproc lcdproc client starting and stopping -# -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +#### BEGIN INIT INFO +# Provides: lcdproc +# Required-Start: $syslog $local_fs $network $remote_fs +# Required-Stop: $syslog $local_fs $network $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: LCDproc system status information viewer +# Description: Debian init script for lcdproc, the system +# status information viewer in the LCDproc suite +### END INIT INFO + +set -e + +# local variables +PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/lcdproc NAME=lcdproc -DESC="LCDproc client daemon" +DESC="LCDproc system status monitor" DEFAULTS=/etc/default/$NAME # Source defaults file; edit that file to configure this script. @@ -19,22 +30,22 @@ if [ "${START}" != "yes" ]; then exit 0 fi +# sanity check test -x $DAEMON || exit 0 -set -e +# load LSB 3.x init functions +. /lib/lsb/init-functions case "$1" in start) - echo -n "Starting $DESC: " - start-stop-daemon --start --quiet \ - --exec $DAEMON -- $OPTIONS - echo "$NAME." + log_daemon_msg "Starting $DESC" "$NAME" + start_daemon $DAEMON $OPTIONS + log_end_msg $? ;; stop) - echo -n "Stopping $DESC: " - start-stop-daemon --stop --oknodo --quiet \ - --exec $DAEMON - echo "$NAME." + log_daemon_msg "Stopping $DESC" "$NAME" + killproc $DAEMON + log_end_msg $? ;; restart|reload|force-reload) $0 stop @@ -42,9 +53,7 @@ case "$1" in $0 start ;; *) - N=/etc/init.d/$NAME - # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac diff --git a/scripts/debian/lcdproc.lcdexec.init b/scripts/debian/lcdproc.lcdexec.init index 86f400d..a235614 100644 --- a/scripts/debian/lcdproc.lcdexec.init +++ b/scripts/debian/lcdproc.lcdexec.init @@ -1,12 +1,23 @@ #! /bin/sh -# -# /etc/init.d/lcdexec lcdexec client starting and stopping -# -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +#### BEGIN INIT INFO +# Provides: lcdexec +# Required-Start: $syslog $local_fs $network $remote_fs +# Required-Stop: $syslog $local_fs $network $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: LCDproc program starter from the LCDd menu +# Description: Debian init script for lcdexec, the client to +# start programs from the LCDd menu in the LCDproc suite +### END INIT INFO + +set -e + +# local variables +PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/lcdexec NAME=lcdexec -DESC="lcdexec program starter daemon" +DESC="LCDproc program starter" DEFAULTS=/etc/default/$NAME # Source defaults file; edit that file to configure this script. @@ -19,22 +30,22 @@ if [ "${START}" != "yes" ]; then exit 0 fi +# sanity check test -x $DAEMON || exit 0 -set -e +# load LSB 3.x init functions +. /lib/lsb/init-functions case "$1" in start) - echo -n "Starting $DESC: " - start-stop-daemon --start --quiet \ - --exec $DAEMON -- $OPTIONS - echo "$NAME." + log_daemon_msg "Starting $DESC" "$NAME" + start_daemon $DAEMON $OPTIONS + log_end_msg $? ;; stop) - echo -n "Stopping $DESC: " - start-stop-daemon --stop --oknodo --quiet \ - --exec $DAEMON - echo "$NAME." + log_daemon_msg "Stopping $DESC" "$NAME" + killproc $DAEMON + log_end_msg $? ;; restart|reload|force-reload) $0 stop @@ -42,9 +53,7 @@ case "$1" in $0 start ;; *) - N=/etc/init.d/$NAME - # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac diff --git a/scripts/debian/lcdproc.lcdvc.init b/scripts/debian/lcdproc.lcdvc.init index a4d8e3c..e77308a 100644 --- a/scripts/debian/lcdproc.lcdvc.init +++ b/scripts/debian/lcdproc.lcdvc.init @@ -1,12 +1,23 @@ #! /bin/sh -# -# /etc/init.d/lcdvc lcdvc client starting and stopping -# -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +#### BEGIN INIT INFO +# Provides: lcdvc +# Required-Start: $syslog $local_fs $network $remote_fs +# Required-Stop: $syslog $local_fs $network $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: LCDproc virtual console +# Description: Debian init script for lcdvc, the virtual +# console client in the LCDproc suite +### END INIT INFO + +set -e + +# local variables +PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/lcdvc NAME=lcdvc -DESC="lcdvc virtual console daemon" +DESC="LCDproc virtual console" DEFAULTS=/etc/default/$NAME # Source defaults file; edit that file to configure this script. @@ -19,22 +30,22 @@ if [ "${START}" != "yes" ]; then exit 0 fi +# sanity check test -x $DAEMON || exit 0 -set -e +# load LSB 3.x init functions +. /lib/lsb/init-functions case "$1" in start) - echo -n "Starting $DESC: " - start-stop-daemon --start --quiet \ - --exec $DAEMON -- $OPTIONS - echo "$NAME." + log_daemon_msg "Starting $DESC" "$NAME" + start_daemon $DAEMON $OPTIONS + log_end_msg $? ;; stop) - echo -n "Stopping $DESC: " - start-stop-daemon --stop --oknodo --quiet \ - --exec $DAEMON - echo "$NAME." + log_daemon_msg "Stopping $DESC" "$NAME" + killproc $DAEMON + log_end_msg $? ;; restart|reload|force-reload) $0 stop @@ -42,9 +53,7 @@ case "$1" in $0 start ;; *) - N=/etc/init.d/$NAME - # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac