2020-05-21 19:06:35 +02:00
|
|
|
--- a/files/fail2ban.service.in 2020-01-11 11:01:00.000000000 +0100
|
|
|
|
+++ b/files/fail2ban.service.in 2020-05-21 09:48:12.049645909 +0200
|
|
|
|
@@ -6,13 +6,14 @@
|
2015-07-01 21:56:17 +02:00
|
|
|
|
|
|
|
[Service]
|
2017-10-24 12:04:00 +02:00
|
|
|
Type=simple
|
2020-05-21 19:06:35 +02:00
|
|
|
-ExecStartPre=/bin/mkdir -p /run/fail2ban
|
2017-10-24 12:04:00 +02:00
|
|
|
-ExecStart=@BINDIR@/fail2ban-server -xf start
|
2020-05-21 19:06:35 +02:00
|
|
|
+EnvironmentFile=-/etc/sysconfig/fail2ban
|
|
|
|
+ExecStartPre=/bin/mkdir -p /var/run/fail2ban
|
2017-10-24 12:04:00 +02:00
|
|
|
+ExecStart=/usr/bin/fail2ban-server -xf $FAIL2BAN_OPTIONS start
|
2018-02-20 10:42:27 +01:00
|
|
|
# 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
|
2017-10-24 12:04:00 +02:00
|
|
|
-ExecStop=@BINDIR@/fail2ban-client stop
|
|
|
|
-ExecReload=@BINDIR@/fail2ban-client reload
|
2020-05-21 19:06:35 +02:00
|
|
|
-PIDFile=/run/fail2ban/fail2ban.pid
|
2018-02-20 10:42:27 +01:00
|
|
|
+# ExecStart=/usr/bin/fail2ban-server -xf --logtarget=sysout start
|
2017-10-24 12:04:00 +02:00
|
|
|
+ExecStop=/usr/bin/fail2ban-client stop
|
|
|
|
+ExecReload=/usr/bin/fail2ban-client reload
|
2020-05-21 19:06:35 +02:00
|
|
|
+PIDFile=/var/run/fail2ban/fail2ban.pid
|
2017-10-24 12:04:00 +02:00
|
|
|
Restart=on-failure
|
|
|
|
RestartPreventExitStatus=0 255
|
2020-05-21 19:06:35 +02:00
|
|
|
|