You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fail2ban/files/fail2ban.upstart

21 lines
461 B

description "fail2ban - ban hosts that cause multiple authentication errors"
start on filesystem and static-network-up
stop on runlevel [016]
expect fork
respawn
env RUNDIR=/var/run/fail2ban
pre-start script
test -d $RUNDIR || mkdir -p $RUNDIR
test ! -e $RUNDIR/fail2ban.sock || rm -f $RUNDIR/fail2ban.sock
end script
exec /usr/bin/fail2ban-client -f -x start
pre-stop exec /usr/bin/fail2ban-client stop
post-stop exec rm -f $RUNDIR/fail2ban.pid