Don't double free VPs. Fixes #1927
[freeradius.git] / suse / radiusd-logrotate
1 # You can use this to rotate the /var/log/radius/* files, simply copy
2 # it to /etc/logrotate.d/radiusd
3
4 #
5 #    Global options for all files
6 #
7 dateext
8 maxage 365
9 rotate 99
10 missingok
11 compress
12 delaycompress
13 notifempty
14
15 #
16 #  The main server log
17 #
18 /var/log/radius/radius.log {
19         copytruncate
20 }
21
22 #
23 #  Session monitoring utilities
24 #
25 /var/log/radius/checkrad.log /var/log/radius/radwatch.log {
26         nocreate
27         size=+1024k
28 }
29
30 #
31 #  Session database modules
32 #
33 /var/log/radius/radutmp /var/log/radius/radwtmp {
34         nocreate
35         size=+2048k
36 }
37
38 #
39 #  SQL log files
40 #
41 /var/log/radius/sqllog.sql {
42         nocreate
43         size=+2048k
44 }
45
46 # There are different detail-rotating strategies you can use.  One is
47 # to write to a single detail file per IP and use the rotate config
48 # below.  Another is to write to a daily detail file per IP with:
49 #     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
50 # (or similar) in radiusd.conf, without rotation.  If you go with the
51 # second technique, you will need another cron job that removes old
52 # detail files.  You do not need to comment out the below for method #2.
53 /var/log/radius/radacct/*/detail {
54         nocreate
55 }
56