Log Rotation

Alan DeKok aland at deployingradius.com
Fri May 18 14:15:00 CEST 2007


barry steyn wrote:
> Now in my particular case when newsyslog runs from cron it finds that
> radius.log, sqltrace.sql and one of the radacct/*/* files have exceeded
> their filesize, so it renames them (*.log.n), touches a new file, in the
> case of radius.log sends a SIGHUP to radiusd and then proceeds to bzip
> the renamed logfiles. As you would expect.

  Don't HUP the server when you rename the log file.  It's not necessary.

> The problem is that when radiusd is running normally it starts to chew
> up 98% CPU from this point onwards and completely stops responding to
> accounting packets. I have to killall -9 radiusd, it won't even respond
> to my SIGTERM. Running in debug mode unfortunately just causes radiusd
> to segfault a few seconds after the log rotation (see output below).

  1.1.x doesn't handle HUP very well.  We hope to fix this in 2.0.0

  Alan DeKok.
--
  http://deployingradius.com       - The web site of the book
  http://deployingradius.com/blog/ - The blog



More information about the Freeradius-Users mailing list