opt/dnsmasq/dnsmasq
2006-02-23 15:26:10 +00:00

27 lines
301 B
Bash

#!/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)
kill -s SIGHUP `pidof dnsmasq`
;;
*)
echo "usage: $0 [start|stop|restart|reload]"
;;
esac
# End of file