From a6313c9e9ef74aebfd0b12994582b4a40fd46d44 Mon Sep 17 00:00:00 2001 From: klaas01 Date: Sat, 26 Dec 2015 14:37:51 -0400 Subject: [PATCH] Update gravity.sh Fix kill command and only run as last step. --- gravity.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 3a146024..57882c55 100755 --- a/gravity.sh +++ b/gravity.sh @@ -239,8 +239,13 @@ function gravity_advanced() { echo "** $numberOf domains being pulled in by gravity..." gravity_unique +} - sudo kill -s -HUP $(pidof dnsmasq) +function gravity_reload() { + # Reload hosts file + + echo "** Refresh lists in dnsmasq..." + sudo kill -HUP $(pidof dnsmasq) } gravity_collapse @@ -250,3 +255,4 @@ gravity_pulsar gravity_advanced gravity_hostFormat gravity_blackbody +gravity_reload