-
Notifications
You must be signed in to change notification settings - Fork 290
/
packetfence.logrotate
54 lines (45 loc) · 1.25 KB
/
packetfence.logrotate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# logrotate file for PacketFence
/usr/local/pf/logs/*log {
daily
rotate 90
missingok
compress
copytruncate
# Output logrotate return code for monitoring
sharedscripts
postrotate
echo $? > /usr/local/pf/var/logrotate.status
endscript
# This following line is required for RHEL / CentOS 7 but will be ignored on RHEL / CentOS 6
su root pf
}
/usr/local/pf/logs/httpd.apache {
daily
rotate 7
missingok
compress
copytruncate
# Output logrotate return code for monitoring
sharedscripts
postrotate
echo $? >> /usr/local/pf/var/logrotate.status
endscript
# This following line is required for RHEL / CentOS 7 but will be ignored on RHEL / CentOS 6
su root pf
}
# only keep to handle rotation of old log files after
# an upgrade to v12.0.0
/usr/local/pf/logs/httpd.*.access /usr/local/pf/logs/httpd.*.error /usr/local/pf/logs/httpd.*.catalyst {
daily
rotate 7
missingok
compress
copytruncate
# Output logrotate return code for monitoring
sharedscripts
postrotate
echo $? >> /usr/local/pf/var/logrotate.status
endscript
# This following line is required for RHEL / CentOS 7 but will be ignored on RHEL / CentOS 6
su root pf
}