forked from pool/fail2ban
4d4d053410
Update to 0.10.4 OBS-URL: https://build.opensuse.org/request/show/676713 OBS-URL: https://build.opensuse.org/package/show/security/fail2ban?expand=0&rev=92
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
Index: files/fail2ban.service.in
|
|
===================================================================
|
|
--- files/fail2ban.service.in.orig
|
|
+++ files/fail2ban.service.in
|
|
@@ -1,17 +1,18 @@
|
|
[Unit]
|
|
Description=Fail2Ban Service
|
|
Documentation=man:fail2ban(1)
|
|
-After=network.target iptables.service firewalld.service ip6tables.service ipset.service
|
|
-PartOf=iptables.service firewalld.service ip6tables.service ipset.service
|
|
+After=network.target iptables.service firewalld.service ip6tables.service ipset.service SuSEfirewall2.service
|
|
+PartOf=iptables.service firewalld.service ip6tables.service ipset.service SuSEfirewall2.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
+EnvironmentFile=-/etc/sysconfig/fail2ban
|
|
ExecStartPre=/bin/mkdir -p /var/run/fail2ban
|
|
-ExecStart=@BINDIR@/fail2ban-server -xf start
|
|
+ExecStart=/usr/bin/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
|
|
-ExecReload=@BINDIR@/fail2ban-client reload
|
|
+# ExecStart=/usr/bin/fail2ban-server -xf --logtarget=sysout start
|
|
+ExecStop=/usr/bin/fail2ban-client stop
|
|
+ExecReload=/usr/bin/fail2ban-client reload
|
|
PIDFile=/var/run/fail2ban/fail2ban.pid
|
|
Restart=on-failure
|
|
RestartPreventExitStatus=0 255
|