Red Hat Bugzilla – Bug 16722
squid boot script error
Last modified: 2008-05-01 11:37:58 EDT
In squid-2.3.STABLE1-5 there is a little bug in the boot script,
installed as /etc/rc.d/init.d/squid, at line 37.
# determine which one is the cache_swap directory
CACHE_SWAP=`sed -e 's/#.*//g' /etc/squid/squid.conf | \
grep cache_dir | sed -e 's/cache_dir//' | \
# wrong! # cut -d ' ' -f 2`
cut -d ' ' -f 3` # ok! #
[ -z "$CACHE_SWAP" ] && CACHE_SWAP=/var/spool/squid
# default squid options
# -D disables initial dns checks. If you most likely will not to have an
# internet connection when you start squid, uncomment this
case "$1" in
echo -n "Starting $SQUID: "
for adir in $CACHE_SWAP; do
if [ ! -d $adir/00 ]; then
echo -n "init_cache_dir $adir... "
$SQUID -z -F 2>/dev/null
with squid 2.3 the type (i.e. ufs) is mandatory in the cache_dir
directive, and $adir in your script has a wrong value, so that
cache_dir is re-inizialized at every boot.
Yup, this has been fixed as of Pinstripe.