aboutsummaryrefslogtreecommitdiffstats
path: root/main/fail2ban/fail2ban.logrotate
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-20 16:45:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-20 16:45:50 +0000
commiteb33925609c209ce4370a6406f014eb9d6c81722 (patch)
tree082a09183ec6e218eba58c785277bb58a76e8512 /main/fail2ban/fail2ban.logrotate
parent2db6c6cae02eeead53b9ad09da0087c928bc29de (diff)
downloadaports-eb33925609c209ce4370a6406f014eb9d6c81722.tar.bz2
aports-eb33925609c209ce4370a6406f014eb9d6c81722.tar.xz
main/fail2ban: moved from testing
fixes #525
Diffstat (limited to 'main/fail2ban/fail2ban.logrotate')
-rw-r--r--main/fail2ban/fail2ban.logrotate9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/fail2ban/fail2ban.logrotate b/main/fail2ban/fail2ban.logrotate
new file mode 100644
index 0000000000..5d22bd0395
--- /dev/null
+++ b/main/fail2ban/fail2ban.logrotate
@@ -0,0 +1,9 @@
+/var/log/fail2ban.log {
+ daily
+ rotate 7
+ missingok
+ compress
+ postrotate
+ /usr/bin/fail2ban-client set logtarget /var/log/fail2ban.log 1>/dev/null || true
+ endscript
+}