2013-03-15 20:37:11 +00:00
|
|
|
[Unit]
|
2014-03-22 17:28:49 +00:00
|
|
|
Description=Fail2Ban Service
|
2014-03-24 14:20:49 +00:00
|
|
|
Documentation=man:fail2ban(1)
|
2019-01-06 16:03:09 +00:00
|
|
|
After=network.target iptables.service firewalld.service ip6tables.service ipset.service nftables.service
|
|
|
|
PartOf=iptables.service firewalld.service ip6tables.service ipset.service nftables.service
|
2013-03-15 20:37:11 +00:00
|
|
|
|
|
|
|
[Service]
|
2016-11-22 10:14:27 +00:00
|
|
|
Type=simple
|
2020-04-15 15:35:04 +00:00
|
|
|
Environment="PYTHONNOUSERSITE=1"
|
2019-07-17 11:38:42 +00:00
|
|
|
ExecStartPre=/bin/mkdir -p /run/fail2ban
|
2017-08-23 10:55:36 +00:00
|
|
|
ExecStart=@BINDIR@/fail2ban-server -xf start
|
2017-11-26 22:03:29 +00:00
|
|
|
# if should be logged in systemd journal, use following line or set logtarget to sysout in fail2ban.local
|
|
|
|
# ExecStart=@BINDIR@/fail2ban-server -xf --logtarget=sysout start
|
2017-08-23 10:55:36 +00:00
|
|
|
ExecStop=@BINDIR@/fail2ban-client stop
|
|
|
|
ExecReload=@BINDIR@/fail2ban-client reload
|
2019-07-17 11:38:42 +00:00
|
|
|
PIDFile=/run/fail2ban/fail2ban.pid
|
2016-11-22 10:14:27 +00:00
|
|
|
Restart=on-failure
|
|
|
|
RestartPreventExitStatus=0 255
|
2013-03-15 20:37:11 +00:00
|
|
|
|
|
|
|
[Install]
|
2013-04-17 15:27:06 +00:00
|
|
|
WantedBy=multi-user.target
|