3
# skeleton example file to build /etc/init.d/ scripts.
4
# This file should be used to construct scripts for /etc/init.d.
6
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
8
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
10
# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
13
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
14
DAEMON=/usr/sbin/lcd4linux
18
test -x $DAEMON || exit 0
20
# Include lcd4linux defaults if available
21
if [ -f /etc/default/lcd4linux ] ; then
22
. /etc/default/lcd4linux
29
echo -n "Starting $DESC: "
30
chmod 600 /etc/lcd4linux.conf
31
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
32
--exec $DAEMON -- $DAEMON_OPTS
36
echo -n "Stopping $DESC: "
37
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
43
# If the daemon can reload its config files on the fly
44
# for example by sending it SIGHUP, do it here.
46
# If the daemon responds to changes in its config file
47
# directly anyway, make this a do-nothing entry.
49
# echo "Reloading $DESC configuration files."
50
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
51
# /var/run/$NAME.pid --exec $DAEMON
55
# If the "reload" option is implemented, move the "force-reload"
56
# option to the "reload" entry above. If not, "force-reload" is
57
# just the same as "restart".
59
echo -n "Restarting $DESC: "
60
start-stop-daemon --stop --quiet --pidfile \
61
/var/run/$NAME.pid --exec $DAEMON
63
start-stop-daemon --start --quiet --pidfile \
64
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
69
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
70
echo "Usage: $N {start|stop|restart|force-reload}" >&2