From 1e1f10e293cf0e3402df0ea0f6c270ced61c7dfd Mon Sep 17 00:00:00 2001 From: Ron Varburg Date: Tue, 14 Apr 2020 11:43:45 +0200 Subject: [PATCH] Do not run logrotate if the log is empty --- debian/fail2ban.logrotate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/fail2ban.logrotate b/debian/fail2ban.logrotate index ea464284..892f5d25 100644 --- a/debian/fail2ban.logrotate +++ b/debian/fail2ban.logrotate @@ -1,8 +1,10 @@ /var/log/fail2ban.log { - + weekly rotate 4 compress + # Do not rotate if empty + notifempty delaycompress missingok