summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorDaniel Black <grooverdan@users.sourceforge.net>2013-05-03 17:16:42 +1000
committerDaniel Black <grooverdan@users.sourceforge.net>2013-05-03 17:16:42 +1000
commit8b8c720d073a8e978e35dfbc965da4e16f401777 (patch)
tree55a2023c04debbfa3d47c43ff768654e9cf3abba /files
parentc12813836becfa239bb38316ddbbadc283fedf42 (diff)
downloadfail2ban-8b8c720d073a8e978e35dfbc965da4e16f401777.tar.gz
ENH: logrotate file
Diffstat (limited to 'files')
-rw-r--r--files/fail2ban-logrotate18
1 files changed, 18 insertions, 0 deletions
diff --git a/files/fail2ban-logrotate b/files/fail2ban-logrotate
new file mode 100644
index 00000000..67c6364a
--- /dev/null
+++ b/files/fail2ban-logrotate
@@ -0,0 +1,18 @@
+#
+# Gentoo:
+# http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/fail2ban/files/fail2ban-logrotate?view=markup
+#
+# 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
+ compress
+ postrotate
+ /usr/bin/fail2ban-client set logtarget /var/log/fail2ban.log 1>/dev/null || true
+ endscript
+}