7 # Default-Start: 2 3 4 5
9 # Short-Description: daemon for driving LCD based displays
10 # Description: LCD4Linux is a small program that grabs information from
11 # the kernel and some subsystems and displays it on an
12 # external liquid crystal display.
15 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
16 DAEMON=/usr/bin/lcd4linux
20 test -x $DAEMON || exit 0
21 test -f /etc/lcd4linux.conf || exit 0
27 echo -n "Starting $DESC: "
28 chmod 600 /etc/lcd4linux.conf
29 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
30 --exec $DAEMON -- $DAEMON_OPTS
34 echo -n "Stopping $DESC: "
35 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
36 --exec $DAEMON || true
40 echo -n "Restarting $DESC: "
41 start-stop-daemon --stop --quiet --pidfile \
42 /var/run/$NAME.pid --exec $DAEMON
44 start-stop-daemon --start --quiet --pidfile \
45 /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
50 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
51 echo "Usage: $N {start|stop|restart|force-reload}" >&2