Update logrotate configs.
This commit is contained in:
parent
8ee26853d7
commit
f43a82d558
4 changed files with 9 additions and 8 deletions
|
@ -6,6 +6,12 @@ dateext
|
|||
dateformat -%Y-%m
|
||||
dateyesterday
|
||||
|
||||
# Missing logs are OK.
|
||||
missingok
|
||||
|
||||
# Don't rotate empty logs.
|
||||
notifempty
|
||||
|
||||
# Compress rotated logs.
|
||||
compress
|
||||
|
||||
|
|
1
base-files/logrotate.d/httpd
Normal file
1
base-files/logrotate.d/httpd
Normal file
|
@ -0,0 +1 @@
|
|||
# This file is intentionally empty - custom httpd configuration does not write logfiles directly.
|
|
@ -1,7 +1 @@
|
|||
/var/log/ntp {
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
[ -x /etc/rc.d/rc.ntpd ] && /etc/rc.d/rc.ntpd restart || true
|
||||
endscript
|
||||
}
|
||||
# This file is intentionally empty - custom ntpd configuration does not write logfiles directly.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/var/log/messages /var/log/fail2ban {
|
||||
/var/log/fail2ban /var/log/ftpd /var/log/httpd /var/log/lumberjack /var/log/messages /var/log/php /var/log/rsyncd /var/log/smtp {
|
||||
sharedscripts
|
||||
postrotate
|
||||
/bin/kill -HUP $(cat /var/run/syslogd.pid) >/dev/null 2>&1 || true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue