aboutsummaryrefslogtreecommitdiffstats
path: root/squid
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-01-08 13:50:01 +0100
committerCorentin LABBE <clabbe@baylibre.com>2018-01-08 15:15:40 +0100
commit93222fc2af169e07c151728497832547eabc3614 (patch)
tree867e1b962cc2391501a216df5c9e7bc5a08c4e5f /squid
parent09e2ea04485476093b97277cf4bf445052f4ba1b (diff)
Remove old squid PID
Sometimes the old squid PID prevent squid from starting.
Diffstat (limited to 'squid')
-rw-r--r--squid/entrypoint.sh5
1 files changed, 5 insertions, 0 deletions
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 $?