1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-21 14:28:07 +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 74b0904af4
commit 097e758cb6
No known key found for this signature in database

7
pihole
View File

@ -139,7 +139,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