Do not exit 1 if pkill killed Pi-hole. Killing is not an error

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-04-14 23:25:32 +02:00
parent c65c22d60d
commit 49c0287d4e

View File

@@ -90,7 +90,7 @@ stop() {
if is_running; then if is_running; then
echo "Not stopped; may still be shutting down or shutdown may have failed, killing now" echo "Not stopped; may still be shutting down or shutdown may have failed, killing now"
pkill -9 -F "${FTL_PID_FILE}" pkill -9 -F "${FTL_PID_FILE}"
exit 1 exit 0
else else
echo "Stopped" echo "Stopped"
fi fi