Bug 11699

Summary: /etc/rc.d/init.d/squid shell script buggy ?
Product: [Retired] Red Hat Raw Hide Reporter: Olivier Benghozi <olivier.benghozi+redhatbugzilla>
Component: squidAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-05-26 22:02:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Olivier Benghozi 2000-05-26 22:02:42 UTC
In the 2.3.STABLE2-5 version of /etc/rc.d/init.d/squid shellscript, I
think there is a bug in find the squid spool directory. It uses this:

# 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//' | \
	awk '{ print $3 }'`

Here, the result of this is: 1024

I think this would work better:

CACHE_SWAP=`sed -e 's/#.*//g' /etc/squid/squid.conf | \
	grep cache_dir | awk '{ print $3 }'`


Result here is: /var/spool/squid

Much better for a "CACHE_SWAP" parameter.

Comment 1 Bill Nottingham 2000-05-31 21:58:50 UTC
Hrm, yes. Fixed in squid-2.3.stable3-1.