1 2 3 4 5 6 7 8
#!/bin/sh # Make dnsmasq reread hostfile pid=$(pidof dnsmasq) for i in $pid; do [ "$(readlink /proc/$i/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $i done