[OpenAFS] Re: Proposed changes for server log rotation
Thu, 2 Dec 2010 19:59:03 -0600
On Thu, 02 Dec 2010 17:05:31 -0800
Russ Allbery <firstname.lastname@example.org> wrote:
> Andrew Deason <email@example.com> writes:
> > The fileserver already automatically checks every five minutes (I
> > think) if it needs to reopen the log, and does so if the log file
> > was moved. If people would find that acceptable, I'd rather just do
> > something similar for all daemons.
> I think that won't work. You need to be able to trigger the rotation
> immediately; five minutes later, the file that the server is still
> writing to has probably been unlinked after being compressed, and all
> the output written in those five minutes will have been lost.
You just have to keep one extra copy uncompressed for it to work (or
that's the easiest way, anyway). Logrotate at least has an option for