forked from pool/fail2ban
552f213926
- Updated to version 0.10.2. Changelog: https://github.com/fail2ban/fail2ban/blob/0.10.2/ChangeLog - rebased patch OBS-URL: https://build.opensuse.org/request/show/578297 OBS-URL: https://build.opensuse.org/package/show/security/fail2ban?expand=0&rev=87
29 lines
1.4 KiB
Diff
29 lines
1.4 KiB
Diff
diff -ur fail2ban-0.10.2-orig/files/fail2ban.service.in fail2ban-0.10.2/files/fail2ban.service.in
|
|
--- fail2ban-0.10.2-orig/files/fail2ban.service.in 2018-01-18 14:49:01.000000000 +0100
|
|
+++ fail2ban-0.10.2/files/fail2ban.service.in 2018-02-20 09:35:36.759476111 +0100
|
|
@@ -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
|