Do not run logrotate if the log is empty

This commit is contained in:
Ron Varburg 2020-04-14 11:43:45 +02:00 committed by Sylvestre Ledru
parent a5ffa9a2b1
commit 1e1f10e293

View file

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