Do not run logrotate if the log is empty

debian
Ron Varburg 2020-04-14 11:43:45 +02:00 committed by Sylvestre Ledru
parent a5ffa9a2b1
commit 1e1f10e293
1 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
/var/log/fail2ban.log { /var/log/fail2ban.log {
weekly weekly
rotate 4 rotate 4
compress compress
# Do not rotate if empty
notifempty
delaycompress delaycompress
missingok missingok