mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Merge pull request #685 from CameronNemo/patch-1
ENH: Create fail2ban.upstart
This commit is contained in:
commit
83d0c9c530
1 changed files with 13 additions and 0 deletions
13
files/fail2ban.upstart
Normal file
13
files/fail2ban.upstart
Normal 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
|
||||
Loading…
Reference in a new issue