Since Ubuntu uses systemd, an alternative approach could be:

postrotate
    if systemctl is-active --quiet fail2ban; then
        fail2ban-client flushlogs 1>/dev/null
    fi
endscript
This only runs flushlogs when fail2ban is actually running. But the simpler || 
true fix would also work and matches upstream.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136998

Title:
  fail2ban logrotate script missing "|| true" causing boot failures

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fail2ban/+bug/2136998/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to