Bug 643

Summary: /etc/rc.d/init.d/squid breaks with multiple CACHE_DIR tags
Product: [Retired] Red Hat Linux Reporter: Adam Thompson <athompso>
Component: squidAssignee: David Lawrence <dkl>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1998-12-29 15:35:02 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 Adam Thompson 1998-12-29 04:52:07 UTC
If multiple "cache_dir" tags are present in
/etc/squid.conf, the init script used to control squid
(/etc/rc.d/init.d/squid) breaks down due to the binary test
of $CACHE_DIR.  This assumes one cache_dir only.

In fact, this test needs to be a for... loop over all the
values of CACHE_DIR, and run the "init_cache_dir" mode if
*any* of them are invalid.

Comment 1 Aleksey Nogin 1998-12-29 05:49:59 UTC
Try using my squid-rhcn RPM from
http://developer.redhat.com/rhcn/browse/rpm2html/Networking_Daemons.html
(They are _not_ produced by RedHat)

Comment 2 Bill Nottingham 1998-12-29 15:35:59 UTC
fixed in the next squid release (2.1.PATCH2-2...)