adapt init scripts to LSB 3.x
This commit is contained in:
@@ -8,7 +8,7 @@ Standards-Version: 3.7.2.0
|
|||||||
|
|
||||||
Package: lcdproc
|
Package: lcdproc
|
||||||
Architecture: any
|
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
|
Description: LCD display driver daemon and clients
|
||||||
This is a client/server suite including drivers for all kinds of
|
This is a client/server suite including drivers for all kinds of
|
||||||
nifty LCD displays. The server supports several serial devices: Matrix
|
nifty LCD displays. The server supports several serial devices: Matrix
|
||||||
|
|||||||
@@ -1,12 +1,23 @@
|
|||||||
#! /bin/sh
|
#! /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
|
DAEMON=/usr/sbin/LCDd
|
||||||
NAME=LCDd
|
NAME=LCDd
|
||||||
DESC="LCDproc server daemon"
|
DESC="LCDproc display server daemon"
|
||||||
DEFAULTS=/etc/default/$NAME
|
DEFAULTS=/etc/default/$NAME
|
||||||
|
|
||||||
# Source defaults file; edit that file to configure this script.
|
# Source defaults file; edit that file to configure this script.
|
||||||
@@ -24,22 +35,22 @@ if [ -z "${OPTIONS}" ]; then
|
|||||||
OPTIONS="-c /etc/lcdproc/LCDd.conf"
|
OPTIONS="-c /etc/lcdproc/LCDd.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# sanity check
|
||||||
test -x $DAEMON || exit 0
|
test -x $DAEMON || exit 0
|
||||||
|
|
||||||
set -e
|
# load LSB 3.x init functions
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting $DESC: "
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
start-stop-daemon --start --quiet \
|
start_daemon $DAEMON $OPTIONS
|
||||||
--exec $DAEMON -- $OPTIONS
|
log_end_msg $?
|
||||||
echo "$NAME."
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping $DESC: "
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
start-stop-daemon --stop --oknodo --quiet \
|
killproc $DAEMON
|
||||||
--exec $DAEMON
|
log_end_msg $?
|
||||||
echo "$NAME."
|
|
||||||
;;
|
;;
|
||||||
restart|reload|force-reload)
|
restart|reload|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
@@ -47,9 +58,7 @@ case "$1" in
|
|||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
N=/etc/init.d/$NAME
|
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
||||||
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
|
|
||||||
echo "Usage: $N {start|stop|restart|force-reload}" >&2
|
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
+26
-17
@@ -1,12 +1,23 @@
|
|||||||
#! /bin/sh
|
#! /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
|
DAEMON=/usr/bin/lcdproc
|
||||||
NAME=lcdproc
|
NAME=lcdproc
|
||||||
DESC="LCDproc client daemon"
|
DESC="LCDproc system status monitor"
|
||||||
DEFAULTS=/etc/default/$NAME
|
DEFAULTS=/etc/default/$NAME
|
||||||
|
|
||||||
# Source defaults file; edit that file to configure this script.
|
# Source defaults file; edit that file to configure this script.
|
||||||
@@ -19,22 +30,22 @@ if [ "${START}" != "yes" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# sanity check
|
||||||
test -x $DAEMON || exit 0
|
test -x $DAEMON || exit 0
|
||||||
|
|
||||||
set -e
|
# load LSB 3.x init functions
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting $DESC: "
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
start-stop-daemon --start --quiet \
|
start_daemon $DAEMON $OPTIONS
|
||||||
--exec $DAEMON -- $OPTIONS
|
log_end_msg $?
|
||||||
echo "$NAME."
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping $DESC: "
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
start-stop-daemon --stop --oknodo --quiet \
|
killproc $DAEMON
|
||||||
--exec $DAEMON
|
log_end_msg $?
|
||||||
echo "$NAME."
|
|
||||||
;;
|
;;
|
||||||
restart|reload|force-reload)
|
restart|reload|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
@@ -42,9 +53,7 @@ case "$1" in
|
|||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
N=/etc/init.d/$NAME
|
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
||||||
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
|
|
||||||
echo "Usage: $N {start|stop|restart|force-reload}" >&2
|
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -1,12 +1,23 @@
|
|||||||
#! /bin/sh
|
#! /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
|
DAEMON=/usr/bin/lcdexec
|
||||||
NAME=lcdexec
|
NAME=lcdexec
|
||||||
DESC="lcdexec program starter daemon"
|
DESC="LCDproc program starter"
|
||||||
DEFAULTS=/etc/default/$NAME
|
DEFAULTS=/etc/default/$NAME
|
||||||
|
|
||||||
# Source defaults file; edit that file to configure this script.
|
# Source defaults file; edit that file to configure this script.
|
||||||
@@ -19,22 +30,22 @@ if [ "${START}" != "yes" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# sanity check
|
||||||
test -x $DAEMON || exit 0
|
test -x $DAEMON || exit 0
|
||||||
|
|
||||||
set -e
|
# load LSB 3.x init functions
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting $DESC: "
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
start-stop-daemon --start --quiet \
|
start_daemon $DAEMON $OPTIONS
|
||||||
--exec $DAEMON -- $OPTIONS
|
log_end_msg $?
|
||||||
echo "$NAME."
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping $DESC: "
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
start-stop-daemon --stop --oknodo --quiet \
|
killproc $DAEMON
|
||||||
--exec $DAEMON
|
log_end_msg $?
|
||||||
echo "$NAME."
|
|
||||||
;;
|
;;
|
||||||
restart|reload|force-reload)
|
restart|reload|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
@@ -42,9 +53,7 @@ case "$1" in
|
|||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
N=/etc/init.d/$NAME
|
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
||||||
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
|
|
||||||
echo "Usage: $N {start|stop|restart|force-reload}" >&2
|
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -1,12 +1,23 @@
|
|||||||
#! /bin/sh
|
#! /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
|
DAEMON=/usr/bin/lcdvc
|
||||||
NAME=lcdvc
|
NAME=lcdvc
|
||||||
DESC="lcdvc virtual console daemon"
|
DESC="LCDproc virtual console"
|
||||||
DEFAULTS=/etc/default/$NAME
|
DEFAULTS=/etc/default/$NAME
|
||||||
|
|
||||||
# Source defaults file; edit that file to configure this script.
|
# Source defaults file; edit that file to configure this script.
|
||||||
@@ -19,22 +30,22 @@ if [ "${START}" != "yes" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# sanity check
|
||||||
test -x $DAEMON || exit 0
|
test -x $DAEMON || exit 0
|
||||||
|
|
||||||
set -e
|
# load LSB 3.x init functions
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting $DESC: "
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
start-stop-daemon --start --quiet \
|
start_daemon $DAEMON $OPTIONS
|
||||||
--exec $DAEMON -- $OPTIONS
|
log_end_msg $?
|
||||||
echo "$NAME."
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping $DESC: "
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
start-stop-daemon --stop --oknodo --quiet \
|
killproc $DAEMON
|
||||||
--exec $DAEMON
|
log_end_msg $?
|
||||||
echo "$NAME."
|
|
||||||
;;
|
;;
|
||||||
restart|reload|force-reload)
|
restart|reload|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
@@ -42,9 +53,7 @@ case "$1" in
|
|||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
N=/etc/init.d/$NAME
|
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
||||||
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
|
|
||||||
echo "Usage: $N {start|stop|restart|force-reload}" >&2
|
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user