diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-01-08 13:50:01 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-01-08 15:15:40 +0100 |
commit | 93222fc2af169e07c151728497832547eabc3614 (patch) | |
tree | 867e1b962cc2391501a216df5c9e7bc5a08c4e5f /squid/entrypoint.sh | |
parent | 09e2ea04485476093b97277cf4bf445052f4ba1b (diff) |
Remove old squid PID
Sometimes the old squid PID prevent squid from starting.
Diffstat (limited to 'squid/entrypoint.sh')
-rw-r--r-- | squid/entrypoint.sh | 5 |
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 $? |