Merge branch 'master' into ipv6

This commit is contained in:
Jacob Salmela 2016-01-01 18:34:33 -06:00
parent d37db4304c
commit 3fc1817e7a
1 changed files with 10 additions and 2 deletions

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