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