Re: [squid-users] compact the swap.state without restarting and rotating the logfiles ?

2009-07-20 Thread Chris Robertson

Amos Jeffries wrote:

Dieter Bloms wrote:

Hi,

I use squid 2.7.STABLE6 and let the logrotate mechanism roting the
logfiles.
After renameing the logfiles I call a "squid -k reconfigure", so squid
can open new logfiles.
But the swap.state is growing and growing.


Yes, its an incremental journal. Growth is normal.


When I restart squid, or when I do a "squid -k logrotate", then the
swap.state gets smaller, but with a "squid -k logrotate" I get many
logfile.[0-9] files, which I don't want.
So is there a command line option to let squid compact the swap.state
file without logfile rotation and without restarting squid ?


No command line option.

Set squid.conf option:
 logfile_rotate 0

This will leave Squid trusting the external logrotate mechanism to 
rename the log files for it.

(NP: logrotate.d config uses postrotate to squid -k rotate right?)


Affirmative.



Amos



Chris



Re: [squid-users] compact the swap.state without restarting and rotating the logfiles ?

2009-07-20 Thread Amos Jeffries

Dieter Bloms wrote:

Hi,

I use squid 2.7.STABLE6 and let the logrotate mechanism roting the
logfiles.
After renameing the logfiles I call a "squid -k reconfigure", so squid
can open new logfiles.
But the swap.state is growing and growing.


Yes, its an incremental journal. Growth is normal.


When I restart squid, or when I do a "squid -k logrotate", then the
swap.state gets smaller, but with a "squid -k logrotate" I get many
logfile.[0-9] files, which I don't want.
So is there a command line option to let squid compact the swap.state
file without logfile rotation and without restarting squid ?


No command line option.

Set squid.conf option:
 logfile_rotate 0

This will leave Squid trusting the external logrotate mechanism to 
rename the log files for it.

(NP: logrotate.d config uses postrotate to squid -k rotate right?)

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE16
  Current Beta Squid 3.1.0.10 or 3.1.0.11


[squid-users] compact the swap.state without restarting and rotating the logfiles ?

2009-07-20 Thread Dieter Bloms
Hi,

I use squid 2.7.STABLE6 and let the logrotate mechanism roting the
logfiles.
After renameing the logfiles I call a "squid -k reconfigure", so squid
can open new logfiles.
But the swap.state is growing and growing.
When I restart squid, or when I do a "squid -k logrotate", then the
swap.state gets smaller, but with a "squid -k logrotate" I get many
logfile.[0-9] files, which I don't want.
So is there a command line option to let squid compact the swap.state
file without logfile rotation and without restarting squid ?

Thank you very much.


-- 
Best regards

  Dieter Bloms

--
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
From field.


pgppMfUfqQE1Y.pgp
Description: PGP signature