mirror of
https://github.com/pi-hole/pi-hole
synced 2025-08-02 12:28:09 +00:00
Allow pihole restart via systemctl
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
7e3ed9b8b2
commit
4e28b76161
5
pihole
5
pihole
@ -154,7 +154,12 @@ restartDNS() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# A full restart has been requested
|
# A full restart has been requested
|
||||||
|
if command -v systemctl >/dev/null 2>&1 ; then
|
||||||
|
svc="systemctl restart pihole-FTL"
|
||||||
|
else
|
||||||
svc="service pihole-FTL restart"
|
svc="service pihole-FTL restart"
|
||||||
|
fi
|
||||||
|
|
||||||
str="Restarting DNS server"
|
str="Restarting DNS server"
|
||||||
icon="${TICK}"
|
icon="${TICK}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user