radiusd.logrotate.erb 1.24 KB
Newer Older
1
# You can use this to rotate the <%= @fr_logpath %>/* files, simply copy
2
3
4
5
6
7
8
9
10
# it to /etc/logrotate.d/radiusd

# There are different detail-rotating strategies you can use.  One is
# to write to a single detail file per IP and use the rotate config
# below.  Another is to write to a daily detail file per IP with:
#     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
# (or similar) in radiusd.conf, without rotation.  If you go with the
# 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.
11
<%= @fr_logpath %>/radacct/*/*.log {
12
13
14
15
16
17
18
	daily
	rotate 7
	nocreate
	missingok
	compress
}

19
<%= @fr_logpath %>/checkrad.log {
20
21
22
23
24
25
26
	weekly
	rotate 1
	create
	missingok
	compress
}

27
<%= @fr_logpath %>/radius*.log {
28
29
30
31
32
33
34
        weekly
        rotate 26
        create
        missingok
        compress
}

35
<%= @fr_logpath %>/radutmp {
36
37
38
39
40
41
42
	weekly
	rotate 1
	create
	compress
	missingok
}

43
<%= @fr_logpath %>/radwtmp {
44
45
46
47
48
49
	weekly
	rotate 1
	create
	compress
	missingok
}
50
<%= @fr_logpath %>/sqltrace.sql {
51
52
53
54
55
56
57
58
        weekly
        rotate 1
        create
        compress
        missingok
}

lastrotate
59
	if [ -e /var/run/radiusd/radiusd.pid ] then; kill -HUP `cat /var/run/radiusd/radiusd.pid`; fi;
60
endscript