Re: [squid-users] logrotate only instead (all) squid rotate

From: Alfredo Rezinovsky <alfredo_at_fing.uncu.edu.ar>
Date: Mon, 28 Apr 2014 15:45:53 -0300

El 15/03/14 22:21, Amos Jeffries escribió:
> On 15/03/2014 12:26 a.m., Alfredo Rezinovsky wrote:
>> Using: "squid -k rotate" squid rotates logs but also closes and reopen
>> caches_dirs and url_rewrite_programs
>>
>> There's a way to signal only the (logfile-daemon) processes to rotate
>> the logs and only the logs ?
> Not with any current Squid. The helpers error reporting (stderr)
> channels are plugged directly into cache.log. So they need to be
> detached and re-attached by restarting when that log is moved. The cache
> journal(s) need cleaning up occasionally and are done as well on rotation.
>
> If you are using a daemon there should be no need to rotate much. The
> daemon is fully responsible for the access.logs and can rotate them even
> without an explicit command from Squid.
> For example; the log_file_daemon bundled with the latest Squid will
> rotate access.log on 32-bit systems whenever the current file exceeds
> 32-bit file sizes and starts getting errors.

In 64-bit systems the log can grow indefinitely and fill the disc?
> On the other hand the daemon helper is a separate helper partially so
> you can write your own and have it do whatever you like. If you do
> extend the bundled file daemon please consider submitting the patch for
> communal benefit.
>
>
> Also, why exactly are you asking for this? perhapse it does not exist
> yet because what you are needing is better or easier done some other way.
>
> Amos
>
>
Received on Mon Apr 28 2014 - 18:46:04 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 29 2014 - 12:00:07 MDT