mirror of https://github.com/fail2ban/fail2ban
21 lines
658 B
INI
21 lines
658 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
|
||
|
ExecStartPre=/bin/mkdir -p /var/run/fail2ban
|
||
|
ExecStart=@BINDIR@/fail2ban-server -xf start
|
||
|
# if should be logged in systemd journal, use following line or set logtarget to stdout in fail2ban.local
|
||
|
# ExecStart=@BINDIR@/fail2ban-server -xf --logtarget=stdout start
|
||
|
ExecStop=@BINDIR@/fail2ban-client stop
|
||
|
ExecReload=@BINDIR@/fail2ban-client reload
|
||
|
PIDFile=/var/run/fail2ban/fail2ban.pid
|
||
|
Restart=on-failure
|
||
|
RestartPreventExitStatus=0 255
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|