Replace restart with SIGHUP

This signal will force the dnsmasq daemon to reload the configuration directly. This is much faster than restarting the daemon, which result in a much smaller window during which no dns server is available.

Tested by using the replaced version of edithosts.sh on a running vrouter causing dns problems.
This commit is contained in:
Hugo Trippaers 2013-04-07 21:46:38 +02:00
parent 7de2b4b30a
commit c9c68e1928
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ fi
pid=$(pidof dnsmasq)
if [ "$pid" != "" ]
then
service dnsmasq restart
#service dnsmasq restart
kill -HUP $pid
else
if [ $no_redundant -eq 1 ]
then