Fix bug not to restart dnsmasq.