Merge pull request #897 from spbnick/strlcpy_fix
[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         postrotate
34                 /sbin/service radiusd reload
35         endscript
36 }
37
38 /var/log/radius/radwtmp {
39         monthly
40         rotate 4
41         create
42         compress
43         missingok
44 }
45 /var/log/radius/sqltrace.sql {
46         monthly
47         rotate 4
48         create
49         compress
50         missingok
51 }