mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
This only works correctly if the client does not fork itself when starting the server (which forks twice further).
15 lines
351 B
Text
15 lines
351 B
Text
description "fail2ban - ban hosts that cause multiple authentication errors"
|
|
|
|
start on filesystem and started networking
|
|
stop on deconfiguring-networking
|
|
|
|
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
|