Re: [squid-users] Log rotation kills helpers

From: Carlos Defoe <carlosdefoe_at_gmail.com>
Date: Tue, 1 Oct 2013 16:18:31 -0300

I had this problem, with kerberos authentication helpers.

I configured logrotate to rotate squid logs,

# cat /etc/logrotate.d/squid

/var/log/squid/*.log {
daily
rotate 7
compress
notifempty
sharedscripts
missingok
postrotate
/path/to/squid -k rotate
endscript
}

and at squid.conf

logfile_rotate 0

Then, no more troubles.

On Mon, Sep 30, 2013 at 12:19 PM, Alex Rousskov
<rousskov_at_measurement-factory.com> wrote:
> On 30/09/2013 7:26 p.m., Kris Glynn wrote:
>> Shouldn't a squid -k rotate leave helpers
>> alone when it's just instructing squid to rotate the logs?
>
> Yes, but nobody has implemented that functionality yet. Implementing it
> is not easy because of the complication that Amos has mentioned below:
>
>
> On 09/30/2013 01:16 AM, Amos Jeffries wrote:
>> The helpers are logging to cache.log via stderr. They need to be
>> restarted to connect to the new cache.log once it has been rotated.
>
> Ideally, Squid should "proxy" helper logging messages (instead of tying
> them to a specific cache.log descriptor) so that log rotation does not
> kill helpers.
>
> http://wiki.squid-cache.org/SquidFaq/AboutSquid#How_to_add_a_new_Squid_feature.2C_enhance.2C_of_fix_something.3F
>
>
> Alex.
>
Received on Tue Oct 01 2013 - 19:18:39 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 02 2013 - 12:00:04 MDT