fix build OBS-URL: https://build.opensuse.org/request/show/1287019 OBS-URL: https://build.opensuse.org/package/show/security/fail2ban?expand=0&rev=138
17 lines
737 B
Diff
17 lines
737 B
Diff
Index: fail2ban-1.1.0/files/fail2ban.service.in
|
|
===================================================================
|
|
--- fail2ban-1.1.0.orig/files/fail2ban.service.in
|
|
+++ fail2ban-1.1.0/files/fail2ban.service.in
|
|
@@ -6,9 +6,10 @@ PartOf=iptables.service firewalld.servic
|
|
|
|
[Service]
|
|
Type=simple
|
|
+EnvironmentFile=-/etc/sysconfig/fail2ban
|
|
Environment="PYTHONNOUSERSITE=1"
|
|
ExecStartPre=/bin/mkdir -p /run/fail2ban
|
|
-ExecStart=@BINDIR@/fail2ban-server -xf start
|
|
+ExecStart=@BINDIR@/fail2ban-server -xf $FAIL2BAN_OPTIONS 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
|