From 49c0287d4e97e56dcba5c199d19aacf0c2dab9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Thu, 14 Apr 2022 23:25:32 +0200 Subject: [PATCH] Do not exit 1 if pkill killed Pi-hole. Killing is not an error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- advanced/Templates/pihole-FTL.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Templates/pihole-FTL.service b/advanced/Templates/pihole-FTL.service index a53407bc..98092347 100644 --- a/advanced/Templates/pihole-FTL.service +++ b/advanced/Templates/pihole-FTL.service @@ -90,7 +90,7 @@ stop() { if is_running; then echo "Not stopped; may still be shutting down or shutdown may have failed, killing now" pkill -9 -F "${FTL_PID_FILE}" - exit 1 + exit 0 else echo "Stopped" fi