a827c0
# You can use this to rotate the /var/log/radius/* files, simply copy
a827c0
# it to /etc/logrotate.d/radiusd
a827c0
a827c0
# There are different detail-rotating strategies you can use.  One is
a827c0
# to write to a single detail file per IP and use the rotate config
a827c0
# below.  Another is to write to a daily detail file per IP with:
a827c0
#     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
a827c0
# (or similar) in radiusd.conf, without rotation.  If you go with the
a827c0
# second technique, you will need another cron job that removes old
a827c0
# detail files.  You do not need to comment out the below for method #2.
a827c0
/var/log/radius/radacct/*/detail {
a827c0
	monthly
a827c0
	rotate 4
a827c0
	nocreate
a827c0
	missingok
a827c0
	compress
a827c0
}
a827c0
a827c0
/var/log/radius/checkrad.log {
a827c0
	monthly
a827c0
	rotate 4
a827c0
	create
a827c0
	missingok
a827c0
	compress
a827c0
}
a827c0
a827c0
/var/log/radius/radius.log {
a827c0
	monthly
a827c0
	rotate 4
a827c0
	create
a827c0
	missingok
a827c0
	compress
a827c0
	postrotate
a827c0
		/sbin/service radiusd reload
a827c0
	endscript
a827c0
}
a827c0
a827c0
/var/log/radius/radutmp {
a827c0
	monthly
a827c0
	rotate 4
a827c0
	create
a827c0
	compress
a827c0
	missingok
a827c0
}
a827c0
a827c0
/var/log/radius/radwtmp {
a827c0
	monthly
a827c0
	rotate 4
a827c0
	create
a827c0
	compress
a827c0
	missingok
a827c0
}
a827c0
/var/log/radius/sqltrace.sql {
a827c0
        monthly
a827c0
        rotate 4
a827c0
        create
a827c0
        compress
a827c0
        missingok
a827c0
}