Skip to content

Commit c9c68e1

Browse files
committed
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.
1 parent 7de2b4b commit c9c68e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

patches/systemvm/debian/config/root/edithosts.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ fi
200200
pid=$(pidof dnsmasq)
201201
if [ "$pid" != "" ]
202202
then
203-
service dnsmasq restart
203+
#service dnsmasq restart
204+
kill -HUP $pid
204205
else
205206
if [ $no_redundant -eq 1 ]
206207
then

0 commit comments

Comments
 (0)