Base: LCDproc 0.5.2
[lcdproc-de200c.git] / scripts / init-lcdproc.debian.in
blob7d2938ff262741a2e9dd0878d3123060e9def643
1 #!/bin/sh -e
3 #### BEGIN INIT INFO
4 # Provides: lcdproc
5 # Required-Start: $syslog $local_fs $network $remote_fs
6 # Required-Stop: $syslog $local_fs $network $remote_fs
7 # Default-Start: 2 3 4 5
8 # Default-Stop: S 0 1 6
9 # Short-Description: LCDproc system status information viewer
10 # Description: Debian init script for lcdproc, the system
11 # status information viewer in the LCDproc suite
12 ### END INIT INFO
14 # local variables
15 prefix=@prefix@
16 exec_prefix=@exec_prefix@
17 bindir=@bindir@
18 sbindir=@sbindir@
19 etc=@sysconfdir@
21 NAME=lcdproc
22 DAEMON=${bindir}/${NAME}
23 DESC="LCDproc system status monitor"
24 OPTIONS=""
26 # installation check
27 test -x ${DAEMON} || exit 0
29 case "$1" in
30 start)
31 printf "Starting ${DESC}: "
32 start-stop-daemon --start --quiet --exec ${DAEMON} -- ${OPTIONS}
33 printf "${NAME}."
35 stop)
36 printf "Stopping ${DESC}: "
37 start-stop-daemon --stop --oknodo --quiet --exec ${DAEMON}
38 printf "${NAME}."
40 restart|force-reload)
41 $0 stop
42 sleep 1
43 $0 start
46 printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
47 exit 1
49 esac
51 exit 0