mirror of https://github.com/fail2ban/fail2ban
18 lines
441 B
INI
18 lines
441 B
INI
[Unit]
|
|
Description=Fail2Ban Service
|
|
Documentation=man:fail2ban(1)
|
|
After=network.target iptables.service firewalld.service
|
|
PartOf=iptables.service firewalld.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/fail2ban-server -xf start
|
|
ExecStop=/usr/bin/fail2ban-client stop
|
|
ExecReload=/usr/bin/fail2ban-client reload
|
|
PIDFile=/var/run/fail2ban/fail2ban.pid
|
|
Restart=on-failure
|
|
RestartPreventExitStatus=0 255
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|