From 0c1fdcf418f5f0df650eabcfdb1665f0e9d916e0 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sat, 2 Aug 2025 11:54:01 +0100 Subject: [PATCH] Utilise the FTL post-stop script that we install during container build. This ensures that all leftover files are cleaned up in line with a bare metal install --- src/start.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/start.sh b/src/start.sh index cc17ce9..cff4ffc 100644 --- a/src/start.sh +++ b/src/start.sh @@ -52,9 +52,8 @@ start() { migrate_gravity echo " [i] pihole-FTL pre-start checks" - # Remove possible leftovers from previous pihole-FTL processes - rm -f /dev/shm/FTL-* 2>/dev/null - rm -f /run/pihole/FTL.sock + # Run the post stop script to cleanup any remaining artifacts from a previous run + sh /opt/pihole/pihole-FTL-poststop.sh fix_capabilities sh /opt/pihole/pihole-FTL-prestart.sh @@ -135,6 +134,8 @@ stop() { FTL_EXIT_CODE=1 fi + sh /opt/pihole/pihole-FTL-poststop.sh + echo "" echo " [i] pihole-FTL exited with status $FTL_EXIT_CODE" echo ""