4 # Required-Start: $remote_fs $syslog
5 # Required-Stop: $remote_fs $syslog
6 # Default-Start: 2 3 4 5
10 # skeleton example file to build /etc/init.d/ scripts.
11 # This file should be used to construct scripts for /etc/init.d.
13 # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
14 # Modified for Debian GNU/Linux
15 # by Ian Murdock <imurdock@gnu.ai.mit.edu>.
17 # Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
20 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
21 DAEMON=/usr/sbin/udhcpd
23 DESC="very small DHCP server"
25 test -x $DAEMON || exit 0
31 echo -n "Starting $DESC: "
32 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
37 echo -n "Stopping $DESC: "
38 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
44 # If the daemon can reload its config files on the fly
45 # for example by sending it SIGHUP, do it here.
47 # If the daemon responds to changes in its config file
48 # directly anyway, make this a do-nothing entry.
50 # echo "Reloading $DESC configuration files."
51 # start-stop-daemon --stop --signal 1 --quiet --pidfile \
52 # /var/run/$NAME.pid --exec $DAEMON
56 # If the "reload" option is implemented, move the "force-reload"
57 # option to the "reload" entry above. If not, "force-reload" is
58 # just the same as "restart".
60 echo -n "Restarting $DESC: "
61 start-stop-daemon --stop --quiet --pidfile \
62 /var/run/$NAME.pid --exec $DAEMON
64 start-stop-daemon --start --quiet --pidfile \
65 /var/run/$NAME.pid --exec $DAEMON
70 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
71 echo "Usage: $N {start|stop|restart|force-reload}" >&2