Bug 11699 - /etc/rc.d/init.d/squid shell script buggy ?
/etc/rc.d/init.d/squid shell script buggy ?
Product: Red Hat Raw Hide
Classification: Retired
Component: squid (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  Show dependency treegraph
Reported: 2000-05-26 18:02 EDT by Olivier Benghozi
Modified: 2014-03-16 22:14 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-05-26 18:02:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Olivier Benghozi 2000-05-26 18:02:42 EDT
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 17:58:50 EDT
Hrm, yes. Fixed in squid-2.3.stable3-1.

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