3
# LCDd initscript for LCDd
4
# by Jose Luis Tallon <jltallon@adv-solutions.net>
8
# Required-Start: $remote_fs $syslog
9
# Required-Stop: $remote_fs $syslog
10
# Default-Start: 2 3 4 5
12
# Short-Description: LCD daemon
13
# Description: Control LCD displays connected to the computer
16
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
18
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
19
# Modified for lcdproc by Jonathan Oxer <jon@debian.org>
24
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
29
# by default, LCDd runs with curses driver. This driver will display stuff
30
# on terminal even if run in background. This spoils the installation fun.
31
# So LCDd is configured to run in foreground and will be pushed
32
# in background by stop-start-daemon
33
DAEMON_OPTS="-s 1 -f -c /etc/LCDd.conf"
35
. /lib/lsb/init-functions
37
test -x $DAEMON || exit 0
40
start-stop-daemon --start --quiet --background \
41
--exec $DAEMON -- $DAEMON_OPTS
45
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
52
echo -n "Starting $DESC: "
57
echo -n "Stopping $DESC: "
62
echo -n "Restarting $DESC: "
69
start-stop-daemon --status --exec $DAEMON
74
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
75
echo "Usage: $N {start|stop|status|restart|force-reload}" >&2