summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorCameron Norman <CameronNemo@users.noreply.github.com>2014-04-11 08:50:55 -0700
committerCameron Norman <CameronNemo@users.noreply.github.com>2014-04-11 08:50:55 -0700
commit5e3f5db8b79a5dbb58fe3ad7240567e298e2801b (patch)
tree060cab4ccfd6764a781b199c3c462d3340b39c8c /files
parent0c38e09d3de18b61f6118c47eb660aa6625a5927 (diff)
downloadfail2ban-5e3f5db8b79a5dbb58fe3ad7240567e298e2801b.tar.gz
Create fail2ban.upstart
Add Upstart job.
Diffstat (limited to 'files')
-rw-r--r--files/fail2ban.upstart13
1 files changed, 13 insertions, 0 deletions
diff --git a/files/fail2ban.upstart b/files/fail2ban.upstart
new file mode 100644
index 00000000..1780a810
--- /dev/null
+++ b/files/fail2ban.upstart
@@ -0,0 +1,13 @@
+description "fail2ban - ban hosts that cause multiple authentication errors"
+
+start on filesystem and started networking
+stop on deconfiguring-networking
+
+expect fork
+respawn
+
+exec /usr/bin/fail2ban-client -x -b start
+
+pre-stop exec /usr/bin/fail2ban-client stop
+
+post-stop exec rm -f /var/run/fail2ban/fail2ban.pid