automatically creates /var/run/fail2ban before start fail2ban (systems which /var/run/ is virtual resp. memory mount device)

pull/1618/head
sebres 2016-11-23 22:03:12 +01:00
parent 528a7a5abb
commit 1cd67ecaa2
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ PartOf=iptables.service firewalld.service
[Service]
Type=simple
ExecStartPre=/bin/mkdir -p /var/run/fail2ban
ExecStart=/usr/bin/fail2ban-server -xf start
ExecStop=/usr/bin/fail2ban-client stop
ExecReload=/usr/bin/fail2ban-client reload