safe-search: restart dnsmasq instead of reload
authorGregory L. Dietsche <gregory.dietsche@cuw.edu>
Wed, 20 Jan 2021 16:08:19 +0000 (10:08 -0600)
committerPaul Spooren <mail@aparcar.org>
Wed, 20 Jan 2021 18:28:22 +0000 (08:28 -1000)
Some users have reported that reloading dnsmasq does not always work. It
sometimes stop responding to DNS lookup requests after being reloaded.
This patch changes "safe-search-maintenance" so that it restarts dnsmasq
instead of reloading it.

Signed-off-by: Gregory L. Dietsche <gregory.dietsche@cuw.edu>
net/safe-search/files/safe-search-maintenance

index 40eda26b4f8a512de7cf8ae12073c47fa4d8bccf..39d19b1e3254ab66e5aa06d10657e7af21237fed 100644 (file)
@@ -483,6 +483,6 @@ EOL
 fi
 
 if [ "$RELOAD_DNSMASQ" = "1" ]; then
-  echo reloading dnsmasq to activate new IP addresses.
-  /etc/init.d/dnsmasq reload
+  echo restarting dnsmasq to activate new IP addresses.
+  /etc/init.d/dnsmasq restart
 fi