Bug 11274

Summary: Squid cache to be re-initialised every time squid startup script is run
Product: [Retired] Red Hat Linux Reporter: Peter Hallgarten <vk3ave>
Component: squidAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: 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-16 16:46:28 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 Peter Hallgarten 2000-05-07 07:45:33 UTC
The bug causes the squid cache to be re-initialised every time squid
startup script is run.

This fault has been caused by an addition to the cache line of the cache
type in /etc/squid/squid.conf in the latest version of squid.
ie. cache_dir ufs /var/spool/squid 2048 16 256

The cache directory is now in position 3.

The setion of the /etc/rc.d/init.d/squid as installed:
# 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//' | \
        cut -d ' ' -f 2'

The setion of the /etc/rc.d/init.d/squid as required to fix the fault
(changed -f 2 to -f 2 at the end of the CACHE_SWAP variable):
# 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//' | \
        cut -d ' ' -f 3`

Comment 1 Bill Nottingham 2000-05-16 16:46:59 UTC
*** This bug has been marked as a duplicate of 11087 ***