Update logrotate configs.

This commit is contained in:
Darren 'Tadgy' Austin 2021-02-12 14:23:38 +00:00
commit f43a82d558
4 changed files with 9 additions and 8 deletions

View file

@ -6,6 +6,12 @@ dateext
dateformat -%Y-%m
dateyesterday
# Missing logs are OK.
missingok
# Don't rotate empty logs.
notifempty
# Compress rotated logs.
compress

View file

@ -0,0 +1 @@
# This file is intentionally empty - custom httpd configuration does not write logfiles directly.

View file

@ -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.

View file

@ -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