20 lines
891 B
Diff
20 lines
891 B
Diff
|
diff -ur fail2ban-0.10.4-orig/files/fail2ban.service.in fail2ban-0.10.4/files/fail2ban.service.in
|
||
|
--- fail2ban-0.10.4-orig/files/fail2ban.service.in 2019-08-12 11:18:27.754395688 +0200
|
||
|
+++ fail2ban-0.10.4/files/fail2ban.service.in 2019-08-12 11:18:49.150908423 +0200
|
||
|
@@ -7,13 +7,13 @@
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
EnvironmentFile=-/etc/sysconfig/fail2ban
|
||
|
-ExecStartPre=/bin/mkdir -p /var/run/fail2ban
|
||
|
+ExecStartPre=/bin/mkdir -p /run/fail2ban
|
||
|
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=/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
|
||
|
+PIDFile=/run/fail2ban/fail2ban.pid
|
||
|
Restart=on-failure
|
||
|
RestartPreventExitStatus=0 255
|
||
|
|