update Debian init script templates
This commit is contained in:
+27
-28
@@ -1,18 +1,15 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
#
|
|
||||||
# lcdd Startup script for LCDd
|
|
||||||
#
|
|
||||||
# Modified for autoconf
|
|
||||||
# by Rene Wagner <reenoo@gmx.de>
|
|
||||||
# Modified for lcd-server
|
|
||||||
# by Joris Robijn <joris@robijn.net>
|
|
||||||
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
|
|
||||||
# Modified for Debian GNU/Linux
|
|
||||||
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
|
|
||||||
#
|
|
||||||
# Version: $Id$
|
|
||||||
|
|
||||||
DESC="LCDd @VERSION@"
|
#### 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
|
||||||
|
|
||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
@@ -20,30 +17,32 @@ bindir=@bindir@
|
|||||||
sbindir=@sbindir@
|
sbindir=@sbindir@
|
||||||
etc=@sysconfdir@
|
etc=@sysconfdir@
|
||||||
|
|
||||||
LCDd=${sbindir}/LCDd
|
NAME=LCDd
|
||||||
configfile=${etc}/LCDd.conf
|
DAEMON=${sbindir}/${NAME}
|
||||||
|
DESC="${NAME} @VERSION@"
|
||||||
|
|
||||||
test -x ${LCDd} || exit 0
|
OPTIONS=""
|
||||||
|
|
||||||
|
|
||||||
|
test -x ${DAEMON} || exit 0
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
printf "Starting $DESC:"
|
printf "Starting ${DESC}: "
|
||||||
start-stop-daemon --start --quiet --background --exec ${LCDd} -- -c ${configfile}
|
start-stop-daemon --start --quiet --exec ${DAEMON} -- ${OPTIONS}
|
||||||
printf " LCDd"
|
printf "${NAME}."
|
||||||
printf ".\n"
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
printf "Stopping $DESC:"
|
printf "Stopping ${DESC}: "
|
||||||
start-stop-daemon --stop --oknodo --quiet --exec ${LCDd}
|
start-stop-daemon --stop --oknodo --quiet --exec ${DAEMON}
|
||||||
printf " LCDd"
|
printf "${NAME}."
|
||||||
printf ".\n"
|
|
||||||
;;
|
;;
|
||||||
restart | force-restart)
|
restart|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
sleep 1
|
sleep 1
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
|
printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -1,18 +1,15 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
#
|
|
||||||
# lcdd Startup script for lcdproc
|
|
||||||
#
|
|
||||||
# Modified for autoconf
|
|
||||||
# by Rene Wagner <reenoo@gmx.de>
|
|
||||||
# Modified for lcd-server
|
|
||||||
# by Joris Robijn <joris@robijn.net>
|
|
||||||
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
|
|
||||||
# Modified for Debian GNU/Linux
|
|
||||||
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
|
|
||||||
#
|
|
||||||
# Version: $Id$
|
|
||||||
|
|
||||||
DESC="lcdproc @VERSION@"
|
#### 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
|
||||||
|
|
||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
@@ -20,30 +17,32 @@ bindir=@bindir@
|
|||||||
sbindir=@sbindir@
|
sbindir=@sbindir@
|
||||||
etc=@sysconfdir@
|
etc=@sysconfdir@
|
||||||
|
|
||||||
lcdproc=${bindir}/lcdproc
|
NAME=lcdproc
|
||||||
|
DAEMON=${bindir}/${NAME}
|
||||||
|
DESC="${NAME} @VERSION@"
|
||||||
|
|
||||||
test -x ${lcdproc} || exit 0
|
OPTIONS=""
|
||||||
|
|
||||||
|
|
||||||
|
test -x ${DAEMON} || exit 0
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
printf "Starting $DESC:"
|
printf "Starting ${DESC}: "
|
||||||
start-stop-daemon --start --quiet --background --exec ${lcdproc} -- $SCREENS
|
start-stop-daemon --start --quiet --exec ${DAEMON} -- ${OPTIONS}
|
||||||
printf " lcdproc"
|
printf "${NAME}."
|
||||||
printf ".\n"
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
printf "Stopping $DESC:"
|
printf "Stopping ${DESC}: "
|
||||||
start-stop-daemon --stop --oknodo --quiet --exec ${lcdproc}
|
start-stop-daemon --stop --oknodo --quiet --exec ${DAEMON}
|
||||||
printf " lcdproc"
|
printf "${NAME}."
|
||||||
printf ".\n"
|
|
||||||
;;
|
;;
|
||||||
restart | force-reload)
|
restart|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
sleep 1
|
sleep 1
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
|
printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user