BF: Skip error in jail reader when no log files and with systemd backend

pull/277/head
Steven Hiscocks 2013-06-29 23:26:40 +01:00
parent 379b4860a1
commit 1aee817be2
1 changed files with 2 additions and 1 deletions

View File

@ -136,7 +136,8 @@ class JailReader(ConfigReader):
for p in pathList:
found_files += 1
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(
"Have not found any log file for %s jail" % self.__name)
elif opt == "logencoding":