Merge pull request #1189 from scop/logrotate

Logrotate tweaks
pull/1187/head
Yaroslav Halchenko 2015-09-13 10:36:20 -04:00
commit bfa286b8e4
2 changed files with 2 additions and 3 deletions

View File

@ -18,6 +18,7 @@ ver. 0.9.4 (2015/XX/XXX) - wanna-be-released
- New Features:
- Enhancements:
* Do not rotate empty log files
ver. 0.9.3 (2015/08/01) - lets-all-stay-friends
----------

View File

@ -4,13 +4,11 @@
#
# Debian:
# https://github.com/fail2ban/fail2ban/blob/debian/debian/fail2ban.logrotate
#
# Fedora view:
# http://pkgs.fedoraproject.org/cgit/fail2ban.git/tree/fail2ban-logrotate
/var/log/fail2ban.log {
rotate 7
missingok
notifempty
compress
postrotate
/usr/bin/fail2ban-client flushlogs 1>/dev/null || true