2 DAEMON=/usr/bin/dnsmasq
4 DESC="DNS forwarder and DHCP server"
7 test -f $DAEMON || exit 0
13 echo -n "starting $DESC: $NAME... "
14 test -d /var/lib/misc/ || mkdir /var/lib/misc/
15 start-stop-daemon -S -x $DAEMON -- $ARGS
19 echo -n "stopping $DESC: $NAME... "
20 start-stop-daemon -K -x $DAEMON
24 echo "restarting $DESC: $NAME... "
30 echo -n "reloading $DESC: $NAME... "
31 killall -HUP $(basename ${DAEMON})
35 echo "Usage: $0 {start|stop|restart|reload}"