1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-07-30 10:58:08 +00:00

Allow pihole restart via systemctl

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2022-11-29 22:47:53 +01:00
parent 7e3ed9b8b2
commit 4e28b76161

7
pihole
View File

@ -154,7 +154,12 @@ restartDNS() {
fi
else
# A full restart has been requested
svc="service pihole-FTL restart"
if command -v systemctl >/dev/null 2>&1 ; then
svc="systemctl restart pihole-FTL"
else
svc="service pihole-FTL restart"
fi
str="Restarting DNS server"
icon="${TICK}"
fi