log rotation

Matthew Newton mcn at freeradius.org
Thu Jan 16 16:15:45 CET 2020

On Thu, 2020-01-16 at 09:08 -0600, Bill Schoolfield wrote:
> On centos at least, rotating the radius.log file (compress and
> rename) 
> results in lost log entries as a new log file is not opened. Before I
> go 
> off and code this so the server is stopped momentarily, is there
> another 
> strategy for handling log rotation while keeping the server up?

FreeRADIUS version?

There was a file locking bug fixed a year or two ago. Log rotation uses
copytruncate, which I suspect was the (unknown at the time) workaround
because of this.

Try using 3.0.20, if that still doesn't fix it try also removing
copytruncate from the logrotate config.


More information about the Freeradius-Users mailing list