<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>217455</bug_id>
          
          <creation_ts>2008-04-12 20:52 0000</creation_ts>
          <short_desc>net-proxy/squid: init.d-script has no idea of COSS cache type</short_desc>
          <delta_ts>2008-04-14 17:09:42 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sven.koehler@gmail.com</reporter>
          <assigned_to>net-proxy@gentoo.org</assigned_to>
          <cc>spamtrap@hope-st.ath.cx</cc>
    
    <cc>XL@XLsigned.net</cc>

      

      
          <long_desc isprivate="0">
            <who>sven.koehler@gmail.com</who>
            <bug_when>2008-04-12 20:52:33 0000</bug_when>
            <thetext>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 &quot;squid -z&quot;.

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 &quot;stripe&quot; 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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2008-04-13 13:35:04 0000</bug_when>
            <thetext>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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>XL@XLsigned.net</who>
            <bug_when>2008-04-13 20:04:53 0000</bug_when>
            <thetext>Hmmh,

squid.initd-logrotate (cvs 1.6) gives me

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

on shutdown!

I&apos;ve set

  cache_dir null /tmp

in my config file, because my squid doesn&apos;t do any caching!

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


 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2008-04-14 05:46:20 0000</bug_when>
            <thetext>Oops... Fixed in cvs. This time I&apos;ve also bumped the revision of the testing versions.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2008-04-14 17:09:42 0000</bug_when>
            <thetext>*** Bug 217580 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
    </bug>

</bugzilla>