Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217455 - net-proxy/squid: init.d-script has no idea of COSS cache type
Summary: net-proxy/squid: init.d-script has no idea of COSS cache type
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 217580 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-12 20:52 UTC by Sven
Modified: 2008-04-14 17:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2008-04-12 20:52:33 UTC
Hi,

my squid.conf contains:
cache_dir coss /var/cache/squid 128 block-size=512 max-size=1048576

That means, that /var/cache/squid will not contain any 00, 01, 02 subdirs. Instead, it contains the file /var/cache/squid/stripe after running "squid -z".

The init.d-script does not understand - it looks for a subdir 00 every time, and tries to run squid -z even though it already has been done on last start.

Please add support for coss to the init.d-script.

(Note: that squid creates a file "stripe" is new in squid 3.0 - i think squid 2.x handles the coss case differently)

Reproducible: Always

Steps to Reproduce:




A workaround is to mkdir /var/cache/squid/00 after running squid -z manually.
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2008-04-13 13:35:04 UTC
Fixed in cvs, but without revision bumping, reasons being:
  - coss cache dirs are used only by a tiny minority of gentoo users
  - new versions are likely to appear soon enough
Comment 2 Axel Dyks 2008-04-13 20:04:53 UTC
Hmmh,

squid.initd-logrotate (cvs 1.6) gives me

awk: (FILENAME=- FNR=62) fatal: not enough arguments to satisfy format string
	`%s/00 '
	 ^ ran out for this one

on shutdown!

I've set

  cache_dir null /tmp

in my config file, because my squid doesn't do any caching!

Seems that the awk statement always expects parameters folloing the
given folder which is an incorrect assumption.


 
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2008-04-14 05:46:20 UTC
Oops... Fixed in cvs. This time I've also bumped the revision of the testing versions.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2008-04-14 17:09:42 UTC
*** Bug 217580 has been marked as a duplicate of this bug. ***