Re: [squid-users] Squid Unable to Serve While Rebuilding Disk Cache After Unclean Shutdown

From: John Hardin <jhardin_at_impsec.org>
Date: Wed, 7 Sep 2011 18:37:26 -0700 (PDT)

On Wed, 7 Sep 2011, Adam Vollrath wrote:

> Is there a way I can configure squid to ignore an inconsistent cache? Or
> have it somehow serve requests while rebuilding? I could add something
> like `rm /var/spool/squid3/*` to the init script, but that'd be terribly
> kludgey.

I think you'll have to live with kludgey.

I'd recommend something like this, though, to minimize the delay getting
squid up and running:

   mv /var/spool/squid3 /var/spool/squid3-corrupt-`date +%s`
   mkdir /var/spool/squid3
   rm -rf /var/spool/squid3-corrupt* &
   # ...proceed with normal startup process

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin_at_impsec.org    FALaholic #11174     pgpk -a jhardin_at_impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   People seem to have this obsession with objects and tools as being
   dangerous in and of themselves, as though a weapon will act of its
   own accord to cause harm. A weapon is just a force multiplier. It's
   *humans* that are (or are not) dangerous.
-----------------------------------------------------------------------
  10 days until the 224th anniversary of the signing of the U.S. Constitution
Received on Thu Sep 08 2011 - 01:37:34 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 08 2011 - 12:00:02 MDT