/etc/init/squid3.conf is in squid3 3.3.8-1ubuntu6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | # squid - SQUID HTTP proxy-cache
#
description "HTTP proxy-cache"
author "Chuck Short <zulcss@ubuntu.com>"
# The second "or" condition is to start squid in case it failed to start
# because no real interface was there.
start on runlevel [2345]
stop on runlevel [!2345]
respawn
normal exit 0
env CONFIG="/etc/squid3/squid.conf"
env SQUID_ARGS="-YC"
pre-start script
/lib/init/apparmor-profile-load usr.sbin.squid3
if [ -f /etc/default/squid3 ]; then
. /etc/default/squid3
fi
find_cache_dir () {
w=" " # space tab
res=`sed -ne '
s/^'$1'['"$w"']\+[^'"$w"']\+['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
t end;
d;
:end q' < $CONFIG`
[ -n "$res" ] || res=$2
echo "$res"
}
find_cache_type () {
w=" " # space tab
res=`sed -ne '
s/^'$1'['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
t end;
d;
:end q' < $CONFIG`
[ -n "$res" ] || res=$2
echo "$res"
}
cache_dir=`find_cache_dir cache_dir`
cache_type=`find_cache_type cache_dir`
if [ "$cache_type" = "coss" -a -d "$cache_dir" -a ! -f "$cache_dir/stripe" ] ||
[ "$cache_type" != "coss" -a -d "$cache_dir" -a ! -d "$cache_dir/00" ]
then
/usr/sbin/squid3 $SQUID_ARGS -z -f $CONFIG
fi
end script
script
if [ -f /etc/default/squid3 ]; then
. /etc/default/squid3
fi
umask 027
ulimit -n 65535
exec /usr/sbin/squid3 -N $SQUID_ARGS -f $CONFIG
end script
|