Logrotate tool

Cornelius Kölbel cornelius.koelbel at lsexperts.de
Mon May 14 16:50:26 CEST 2012


you could also try to use

This will not remove the current log file, but will copy the logfile and
then try to truncate, so that you should not run into file handle issues.

Kind regards

Am 14.05.2012 16:15, schrieb yagizozen:
> Hello everyone,
> As you know, FR has a radius.log file under /var/log/radius  directory. I
> noticed that inside the logrorate file, radius.log is set to rotate every
> month.  Like this : 
>  /var/log/radius/radius.log {
> 	 monthly
> 	 rotate 100
> 	 create
> 	missingok
> 	 compress
>  }
> This is by default. I changed this to "daily" but the problem is, I need to
> restart radius everytime when the new day comes in order to write to NEW
> radius.log file. If I do not restart, it tries to point the compress version
> of the old radius.log.
> Why is that? 
> I also can not do this inside an external script. When I rename the file
> inside the script, it still writes to the new renamed radius.log file. Any
> suggestions or any place for me to read?
> Thanks You in advance.
> --
> View this message in context: http://freeradius.1045715.n5.nabble.com/Logrotate-tool-tp5709081.html
> Sent from the FreeRadius - User mailing list archive at Nabble.com.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120514/f9731beb/attachment.pgp>

More information about the Freeradius-Users mailing list