mirror of https://github.com/apache/cloudstack.git
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:
parent
7de2b4b30a
commit
c9c68e1928
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue