From 5ca1bfc11c67d6492de6e7810299e9802d8814e0 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 8 Feb 2019 14:56:44 +0100 Subject: [PATCH] Delete /dev/shm/FTL-* files on (re)start of pihole-FTL Signed-off-by: DL6ER --- advanced/Templates/pihole-FTL.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/advanced/Templates/pihole-FTL.service b/advanced/Templates/pihole-FTL.service index d19e2bd5..9eb183ed 100644 --- a/advanced/Templates/pihole-FTL.service +++ b/advanced/Templates/pihole-FTL.service @@ -33,6 +33,8 @@ start() { mkdir -p /var/run/pihole mkdir -p /var/log/pihole chown pihole:pihole /var/run/pihole /var/log/pihole + # Remove possible leftovers from previous pihole-FTL processes + rm -f /dev/shm/FTL-* 2> /dev/null rm /var/run/pihole/FTL.sock 2> /dev/null # Ensure that permissions are set so that pihole-FTL can edit all necessary files chown pihole:pihole /run/pihole-FTL.pid /run/pihole-FTL.port