forked from inverse-inc/packetfence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packetfence.logrotate
35 lines (29 loc) · 834 Bytes
/
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
# 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.*.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
}