mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Do not run logrotate if the log is empty
This commit is contained in:
parent
a5ffa9a2b1
commit
1e1f10e293
1 changed files with 3 additions and 1 deletions
4
debian/fail2ban.logrotate
vendored
4
debian/fail2ban.logrotate
vendored
|
|
@ -1,8 +1,10 @@
|
|||
/var/log/fail2ban.log {
|
||||
|
||||
|
||||
weekly
|
||||
rotate 4
|
||||
compress
|
||||
# Do not rotate if empty
|
||||
notifempty
|
||||
|
||||
delaycompress
|
||||
missingok
|
||||
|
|
|
|||
Loading…
Reference in a new issue