From 93222fc2af169e07c151728497832547eabc3614 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Mon, 8 Jan 2018 13:50:01 +0100 Subject: Remove old squid PID Sometimes the old squid PID prevent squid from starting. --- squid/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'squid/entrypoint.sh') diff --git a/squid/entrypoint.sh b/squid/entrypoint.sh index 560d206..70bdf6e 100644 --- a/squid/entrypoint.sh +++ b/squid/entrypoint.sh @@ -1,5 +1,10 @@ #!/bin/bash +if [ -e /var/run/squid.pid ];then + #echo "DEBUG: Removed old squid PID" + rm /var/run/squid.pid +fi + # Create cache FS if [ ! -e /var/spool/squid/00 ];then squid -z || exit $? -- cgit 1.2.3-korg