File: fail2ban.upstart

package info (click to toggle)
fail2ban 1.1.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,076 kB
  • sloc: python: 23,095; sh: 527; xml: 352; perl: 344; makefile: 191
file content (20 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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