forked from pool/fail2ban
04054064c9
- Fail2ban can't be PartOf ipset.service and nftables.service that conflict with firewalld.service (as it will prevent restarting the latter and which are not provided anymore) * fail2ban-opensuse-service.patch * harden_fail2ban.service.patch OBS-URL: https://build.opensuse.org/request/show/948093 OBS-URL: https://build.opensuse.org/package/show/security/fail2ban?expand=0&rev=110
28 lines
1.3 KiB
Diff
28 lines
1.3 KiB
Diff
diff -ur fail2ban-0.11.2-orig/files/fail2ban.service.in fail2ban-0.11.2/files/fail2ban.service.in
|
|
--- fail2ban-0.11.2-orig/files/fail2ban.service.in 2020-11-23 21:43:03.000000000 +0100
|
|
+++ fail2ban-0.11.2/files/fail2ban.service.in 2020-12-05 18:22:01.503018894 +0100
|
|
@@ -2,17 +2,18 @@
|
|
Description=Fail2Ban Service
|
|
Documentation=man:fail2ban(1)
|
|
After=network.target iptables.service firewalld.service ip6tables.service ipset.service nftables.service
|
|
-PartOf=iptables.service firewalld.service ip6tables.service ipset.service nftables.service
|
|
+PartOf=firewalld.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
+EnvironmentFile=-/etc/sysconfig/fail2ban
|
|
Environment="PYTHONNOUSERSITE=1"
|
|
ExecStartPre=/bin/mkdir -p /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=/run/fail2ban/fail2ban.pid
|
|
Restart=on-failure
|
|
RestartPreventExitStatus=0 255
|