mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-23 07:18:07 +00:00
Merge pull request #1743 from pi-hole/fix/wildcardrestart
Fix for wildcard not restarting `dnsmasq`
This commit is contained in:
commit
5f8b0b3c89
2
pihole
2
pihole
@ -336,7 +336,7 @@ restartDNS() {
|
||||
if [[ "${svcOption}" =~ "reload" ]]; then
|
||||
# Using SIGHUP will NOT re-read any *.conf files
|
||||
svc="killall -s SIGHUP dnsmasq"
|
||||
elif [[ -z "${svcOption}" ]]; then
|
||||
else
|
||||
# Get PID of dnsmasq to determine if it needs to start or restart
|
||||
if pidof dnsmasq &> /dev/null; then
|
||||
svcOption="restart"
|
||||
|
Loading…
Reference in New Issue
Block a user