mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-19 18:08:35 +00:00
Merge pull request #1876 from pi-hole/fix/1789-maybe
Ensure all orphan FTL files are cleaned on startup
This commit is contained in:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user