Subject: Re: Log rotation
To: None <rmk@rmkhome.com>
From: john heasley <heas@shrubbery.net>
List: current-users
Date: 02/18/2005 15:16:23
Fri, Feb 18, 2005 at 03:44:55PM -0700, Rick Kelly:
> Jeremy C. Reed said:
> 
> >newsyslog does the signal before it compresses the newly rotated file (and
> >after it creates new log file).
> 
> Back when www.rmkhome.com was running on NetBSD 1.4, I tried to use newsyslog
> to rotate the apache logs files. I found that it would rotate the files once,
> create the new empty log files, but apache would be logging to the old file
> descriptors, and nothing would get logged until I restarted apache. Has this

Wouldn't you rather just copy and truncate the log file?  I suggested such
a feature for newsyslog, but given timing there is a chance that some
messages could be missed.  Andrew Brown suggested cronolog as a better
solution for such log files.