1
0
mirror of https://github.com/moparisthebest/pi-hole synced 2024-11-24 02:02:19 -05:00

Merge branch 'master' into ipv6

This commit is contained in:
Jacob Salmela 2016-01-01 18:34:33 -06:00
parent d37db4304c
commit 3fc1817e7a

View File

@ -255,9 +255,17 @@ function gravity_advanced() {
function gravity_reload() {
# Reload hosts file
echo "** Refresh lists in dnsmasq..."
sudo kill -HUP $(pidof dnsmasq)
dnsmasqPid=$(pidof dnsmasq)
if [[ $dnsmasqPid ]]; then
# service already running - reload config
sudo kill -HUP $dnsmasqPid
else
# service not running, start it up
sudo service dnsmasq start
fi
}
gravity_collapse