1 2 3 4 5
#!/bin/sh # Make dnsmasq reread hostfile pid=$(pidof dnsmasq) [ "$(readlink /proc/$pid/exe)" = "/usr/sbin/dnsmasq" ] && kill -SIGHUP $pid