Bug 16722 - squid boot script error
Summary: squid boot script error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: squid-config
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Florian La Roche
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-08-22 14:07 UTC by Need Real Name
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-08-22 14:08:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2000-08-22 14:07:59 UTC
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.

In particular,

[...]
# 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
SQUID_OPTS="-D"

RETVAL=0
case "$1" in
start)
    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
        fi
    done
[...]

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.

regards,
	giovanni armanino

Comment 1 Bill Nottingham 2000-08-22 15:56:56 UTC
Yup, this has been fixed as of Pinstripe.


Note You need to log in before you can comment on or make changes to this bug.