Skip to content
Permalink
Browse files

amend to #2174 for fail2ban.service, fix legacy path, closes gh-2474

  • Loading branch information
sebres committed Jul 17, 2019
1 parent 7520d25 commit d5a5efcd5af272372153e86436d7c8cde2ddf66d
Showing with 2 additions and 2 deletions.
  1. +2 −2 files/fail2ban.service.in
@@ -6,13 +6,13 @@ PartOf=iptables.service firewalld.service ip6tables.service ipset.service nftabl

[Service]
Type=simple
ExecStartPre=/bin/mkdir -p /var/run/fail2ban
ExecStartPre=/bin/mkdir -p /run/fail2ban
ExecStart=@BINDIR@/fail2ban-server -xf start
# 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
ExecStop=@BINDIR@/fail2ban-client stop
ExecReload=@BINDIR@/fail2ban-client reload
PIDFile=/var/run/fail2ban/fail2ban.pid
PIDFile=/run/fail2ban/fail2ban.pid
Restart=on-failure
RestartPreventExitStatus=0 255

0 comments on commit d5a5efc

Please sign in to comment.
You can’t perform that action at this time.