Skip to content

Commit

Permalink
Create fail2ban.upstart
Browse files Browse the repository at this point in the history
Add Upstart job.
  • Loading branch information
CameronNemo committed Apr 11, 2014
1 parent 0c38e09 commit 5e3f5db
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 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

0 comments on commit 5e3f5db

Please sign in to comment.