2020-08-26 13:35:27 +02:00
|
|
|
Index: freeradius-server-3.0.21/suse/radiusd-logrotate
|
2017-05-30 11:15:48 +02:00
|
|
|
===================================================================
|
2020-08-26 13:35:27 +02:00
|
|
|
--- freeradius-server-3.0.21.orig/suse/radiusd-logrotate
|
|
|
|
+++ freeradius-server-3.0.21/suse/radiusd-logrotate
|
|
|
|
@@ -11,19 +11,23 @@ missingok
|
|
|
|
compress
|
|
|
|
delaycompress
|
|
|
|
notifempty
|
|
|
|
-su radiusd radiusd
|
|
|
|
|
|
|
|
#
|
2015-04-23 14:34:02 +02:00
|
|
|
# The main server log
|
|
|
|
#
|
|
|
|
/var/log/radius/radius.log {
|
|
|
|
+ su radiusd radiusd
|
|
|
|
copytruncate
|
|
|
|
+ postrotate
|
|
|
|
+ kill -HUP `cat /run/radiusd/radiusd.pid` || :
|
|
|
|
+ endscript
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Session monitoring utilities
|
|
|
|
#
|
|
|
|
/var/log/radius/checkrad.log /var/log/radius/radwatch.log {
|
|
|
|
+ su radiusd radiusd
|
|
|
|
nocreate
|
|
|
|
size=+1024k
|
|
|
|
}
|
2020-08-26 13:35:27 +02:00
|
|
|
@@ -32,6 +36,7 @@ su radiusd radiusd
|
2015-04-23 14:34:02 +02:00
|
|
|
# SQL log files
|
|
|
|
#
|
|
|
|
/var/log/radius/sqllog.sql {
|
|
|
|
+ su radiusd radiusd
|
|
|
|
nocreate
|
|
|
|
size=+2048k
|
|
|
|
}
|
2020-08-26 13:35:27 +02:00
|
|
|
@@ -44,6 +49,7 @@ su radiusd radiusd
|
2015-04-23 14:34:02 +02:00
|
|
|
# second technique, you will need another cron job that removes old
|
|
|
|
# detail files. You do not need to comment out the below for method #2.
|
|
|
|
/var/log/radius/radacct/*/detail {
|
|
|
|
+ su radiusd radiusd
|
|
|
|
nocreate
|
|
|
|
}
|
|
|
|
|