mirror of https://github.com/fail2ban/fail2ban
BF: Skip error in jail reader when no log files and with systemd backend
parent
379b4860a1
commit
1aee817be2
|
@ -136,7 +136,8 @@ class JailReader(ConfigReader):
|
||||||
for p in pathList:
|
for p in pathList:
|
||||||
found_files += 1
|
found_files += 1
|
||||||
stream.append(["set", self.__name, "addlogpath", p])
|
stream.append(["set", self.__name, "addlogpath", p])
|
||||||
if not (found_files or allow_no_files):
|
if not (found_files or allow_no_files or
|
||||||
|
self.__opts.get('backend', None) == "systemd"):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Have not found any log file for %s jail" % self.__name)
|
"Have not found any log file for %s jail" % self.__name)
|
||||||
elif opt == "logencoding":
|
elif opt == "logencoding":
|
||||||
|
|
Loading…
Reference in New Issue