Search squid archive

Re: Log rotation kills helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx> 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.
>




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux