Create fail2ban.upstart

Add Upstart job.
This commit is contained in:
Cameron Norman 2014-04-11 08:50:55 -07:00
parent 0c38e09d3d
commit 5e3f5db8b7

13
files/fail2ban.upstart Normal file
View file

@ -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