mirror of
https://github.com/apache/cloudstack
synced 2026-08-05 10:36:44 +00:00
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
Block a user