3 [ -x /usr
/sbin
/dnsmasq
] ||
exit 0
4 [ -f /etc
/dnsmasq.conf
] ||
exit 0
8 printf "Starting dnsmasq: "
9 start-stop-daemon
-S -x /usr
/sbin
/dnsmasq
10 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
13 printf "Stopping dnsmasq: "
14 start-stop-daemon
-K -q -x /usr
/sbin
/dnsmasq
15 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
22 echo "Usage: $0 {start|stop|restart}"