1
0
freeradius-server/freeradius-server-radiusd-logrotate.patch
Vítězslav Čížek 8c9ca09252 Accepting request 298796 from home:stroeder:branches:network
Update to 3.0.8, tested running on openSUSE Tumbleweed x86_64.

Please adjust things (e.g. longish changelog) as needed by you.

Thanks.

OBS-URL: https://build.opensuse.org/request/show/298796
OBS-URL: https://build.opensuse.org/package/show/network/freeradius-server?expand=0&rev=71
2015-04-23 12:34:02 +00:00

46 lines
1.0 KiB
Diff

--- freeradius-server-3.0.8.orig/suse/radiusd-logrotate 2015-04-22 19:21:34.000000000 +0200
+++ freeradius-server-3.0.8.suse/suse/radiusd-logrotate 2015-04-23 10:15:52.847179845 +0200
@@ -16,13 +16,18 @@
# 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
}
@@ -31,6 +36,7 @@
# Session database modules
#
/var/log/radius/radutmp /var/log/radius/radwtmp {
+ su radiusd radiusd
nocreate
size=+2048k
}
@@ -39,6 +45,7 @@
# SQL log files
#
/var/log/radius/sqllog.sql {
+ su radiusd radiusd
nocreate
size=+2048k
}
@@ -51,6 +58,7 @@
# 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
}