mirror of
https://github.com/b4tman/docker-squid.git
synced 2024-11-24 12:16:53 +00:00
14 lines
265 B
Bash
14 lines
265 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -x
|
||
|
|
||
|
# force remove pid
|
||
|
if [ -e /var/run/squid/squid.pid ]; then
|
||
|
rm -f /var/run/squid/squid.pid
|
||
|
fi
|
||
|
|
||
|
# init cache
|
||
|
/usr/sbin/squid -f "${SQUID_CONFIG_FILE}" --foreground -z
|
||
|
|
||
|
# run squid
|
||
|
exec /usr/sbin/squid -f "${SQUID_CONFIG_FILE}" --foreground -YCd 1
|