Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 217455
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Network Proxy Developers <net-proxy@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sven <sven.koehler@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 217455 depends on: Show dependency tree
Bug 217455 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-04-12 20:52 0000
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 From Alin Năstac 2008-04-13 13:35:04 0000 -------
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 From Axel Dyks 2008-04-13 20:04:53 0000 -------
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 From Alin Năstac 2008-04-14 05:46:20 0000 -------
Oops... Fixed in cvs. This time I've also bumped the revision of the testing
versions.

------- Comment #4 From Alin Năstac 2008-04-14 17:09:42 0000 -------
*** Bug 217580 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug