mirror of https://github.com/fail2ban/fail2ban
Change Upstart job to track PID of the server
This only works correctly if the client does not fork itself when starting the server (which forks twice further).pull/686/head
parent
0c8e72f452
commit
0ef5027234
|
@ -3,5 +3,13 @@ description "fail2ban - ban hosts that cause multiple authentication errors"
|
||||||
start on filesystem and started networking
|
start on filesystem and started networking
|
||||||
stop on deconfiguring-networking
|
stop on deconfiguring-networking
|
||||||
|
|
||||||
pre-start exec /usr/bin/fail2ban-client -x start
|
expect daemon
|
||||||
|
respawn
|
||||||
|
|
||||||
|
pre-start script
|
||||||
|
[ -d /var/run/fail2ban ] || mkdir -p /var/run/fail2ban
|
||||||
|
end script
|
||||||
|
|
||||||
|
exec /usr/bin/fail2ban-client -x start
|
||||||
|
|
||||||
post-stop exec /usr/bin/fail2ban-client stop
|
post-stop exec /usr/bin/fail2ban-client stop
|
||||||
|
|
Loading…
Reference in New Issue