mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Send SIGHUP to pihole-FTL when restarting/reloading dnsmasq
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
da1d2b2c48
commit
b9ae01d819
1 changed files with 5 additions and 2 deletions
3
pihole
3
pihole
|
@ -346,6 +346,9 @@ restartDNS() {
|
||||||
svc="service dnsmasq ${svcOption}"
|
svc="service dnsmasq ${svcOption}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Send signal to FTL to have it re-parse the gravity files
|
||||||
|
killall -s SIGHUP pihole-FTL
|
||||||
|
|
||||||
# Print output to Terminal, but not to Web Admin
|
# Print output to Terminal, but not to Web Admin
|
||||||
str="${svcOption^}ing DNS service"
|
str="${svcOption^}ing DNS service"
|
||||||
[[ -t 1 ]] && echo -ne " ${INFO} ${str}..."
|
[[ -t 1 ]] && echo -ne " ${INFO} ${str}..."
|
||||||
|
|
Loading…
Reference in a new issue