slackbuilds_ponce/network/fail2ban/fail2ban.logrotate
Nishant Limbachia 99e12a62ef network/fail2ban: Updated for version 0.8.9.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2013-06-04 00:11:29 -05:00

11 lines
305 B
Text

# 5/23/2013 - updated logrotate script based on suggestion by Sebastian Arcus
# and official github documentation.
/var/log/fail2ban.log {
weekly
rotate 7
missingok
nocompress
postrotate
/usr/bin/fail2ban-client set logtarget /var/log/fail2ban.log 1>/dev/null || true
endscript
}