]>
Commit | Line | Data |
---|---|---|
6a3660d5 AM |
1 | # You can use this to rotate the /var/log/freeradius/* files, simply copy |
2 | # it to /etc/logrotate.d/radiusd | |
3 | ||
4 | # Last part should reload the server | |
5 | ||
6 | /var/log/freeradius/radacct/*/detail { | |
b9e2d591 | 7 | olddir /var/log/archiv/freeradius/radacct |
6a3660d5 AM |
8 | monthly |
9 | rotate 4 | |
9188b337 | 10 | create 660 root radius |
6a3660d5 AM |
11 | missingok |
12 | compress | |
13 | } | |
14 | ||
15 | /var/log/freeradius/checkrad.log { | |
b9e2d591 | 16 | olddir /var/log/archiv/freeradius |
6a3660d5 AM |
17 | monthly |
18 | rotate 4 | |
9188b337 | 19 | create 660 root radius |
6a3660d5 AM |
20 | missingok |
21 | compress | |
22 | } | |
23 | ||
24 | /var/log/freeradius/radius.log { | |
b9e2d591 | 25 | olddir /var/log/archiv/freeradius |
6a3660d5 AM |
26 | monthly |
27 | rotate 4 | |
9188b337 | 28 | create 660 root radius |
6a3660d5 AM |
29 | missingok |
30 | compress | |
31 | } | |
32 | ||
33 | /var/log/freeradius/radwatch.log { | |
b9e2d591 | 34 | olddir /var/log/archiv/freeradius |
6a3660d5 AM |
35 | monthly |
36 | rotate 4 | |
9188b337 | 37 | create 660 root radius |
6a3660d5 AM |
38 | missingok |
39 | compress | |
40 | } | |
41 | ||
9188b337 JK |
42 | |
43 | ||
44 | # Should this really be rotated | |
6a3660d5 | 45 | /var/log/freeradius/radutmp { |
b9e2d591 | 46 | olddir /var/log/archiv/freeradius |
6a3660d5 AM |
47 | monthly |
48 | rotate 4 | |
9188b337 | 49 | create 660 root radius |
6a3660d5 AM |
50 | compress |
51 | missingok | |
52 | } | |
53 | ||
54 | /var/log/freeradius/radwtmp { | |
b9e2d591 | 55 | olddir /var/log/archiv/freeradius |
6a3660d5 AM |
56 | monthly |
57 | rotate 4 | |
9188b337 | 58 | create 660 root radius |
6a3660d5 AM |
59 | compress |
60 | missingok | |
61 | postrotate | |
bc58833b | 62 | /sbin/service radiusd condrestart |
6a3660d5 AM |
63 | endscript |
64 | } |