Add Moonshot-COI and Moonshot-APC attributes
[freeradius.git] / redhat / freeradius-logrotate
1 # You can use this to rotate the /var/log/radius/* files, simply copy
2 # it to /etc/logrotate.d/radiusd
3
4 # There are different detail-rotating strategies you can use.  One is
5 # to write to a single detail file per IP and use the rotate config
6 # below.  Another is to write to a daily detail file per IP with:
7 #     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
8 # (or similar) in radiusd.conf, without rotation.  If you go with the
9 # second technique, you will need another cron job that removes old
10 # detail files.  You do not need to comment out the below for method #2.
11 /var/log/radius/radacct/*/detail {
12         monthly
13         rotate 4
14         nocreate
15         missingok
16         compress
17 }
18
19 /var/log/radius/checkrad.log {
20         monthly
21         rotate 4
22         create
23         missingok
24         compress
25 }
26
27 /var/log/radius/radius.log {
28         monthly
29         rotate 4
30         create
31         missingok
32         compress
33 }
34
35 /var/log/radius/radwtmp {
36         monthly
37         rotate 4
38         create
39         compress
40         missingok
41 }
42 /var/log/radius/sqllog.sql {
43         monthly
44         rotate 4
45         create
46         compress
47         missingok
48 }
49
50 lastrotate
51         kill -HUP `cat /var/run/radiusd/radiusd.pid`
52 endscript