Search squid archive

Re: logrotate only instead (all) squid rotate

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

 



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







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

  Powered by Linux