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)
|
2014-03-22 17:28:49 +00:00
|
|
|
After=network.target iptables.service firewalld.service
|
2015-11-12 04:10:35 +00:00
|
|
|
PartOf=iptables.service firewalld.service
|
2013-03-15 20:37:11 +00:00
|
|
|
|
|
|
|
[Service]
|
2016-11-22 10:14:27 +00:00
|
|
|
Type=simple
|
2016-11-23 21:03:12 +00:00
|
|
|
ExecStartPre=/bin/mkdir -p /var/run/fail2ban
|
2016-11-22 10:14:27 +00:00
|
|
|
ExecStart=/usr/bin/fail2ban-server -xf start
|
2016-11-24 11:13:47 +00:00
|
|
|
# if should be logged in systemd journal, use following line or set logtarget to stdout in fail2ban.local
|
|
|
|
# ExecStart=/usr/bin/fail2ban-server -xf --logtarget=stdout start
|
2013-03-15 20:37:11 +00:00
|
|
|
ExecStop=/usr/bin/fail2ban-client stop
|
|
|
|
ExecReload=/usr/bin/fail2ban-client reload
|
2013-04-17 15:27:06 +00:00
|
|
|
PIDFile=/var/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
|