opt/dnsmasq/dnsmasq

27 lines
299 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
#!/bin/sh
#
# /etc/rc.d/dnsmasq: start/stop dnsmasq daemon
#
case $1 in
start)
/usr/sbin/dnsmasq
;;
stop)
killall -q /usr/sbin/dnsmasq
;;
restart)
$0 stop
sleep 2
$0 start
;;
reload)
2008-02-18 17:24:58 +01:00
kill -s HUP $(pidof dnsmasq)
2006-02-23 16:26:10 +01:00
;;
*)
echo "usage: $0 [start|stop|restart|reload]"
;;
esac
# End of file