updated test cases to fix old broken code

This commit is contained in:
Blake J. Harnden 2018-01-09 15:52:29 -08:00
parent 77be7f5c30
commit 3ce416b610
5 changed files with 24 additions and 42 deletions

View file

@ -39,6 +39,7 @@ from core.misc import nodemaps
from core.misc import nodeutils
from core.misc.utils import closeonexec
from core.misc.utils import daemonize
from core.service import ServiceManager
DEFAULT_MAXFD = 1024
@ -313,6 +314,14 @@ def main():
for a in args:
logger.error("ignoring command line argument: %s", a)
# attempt load custom services
service_paths = cfg.get("custom_services_dir")
logger.debug("custom service paths: %s", service_paths)
if service_paths:
for service_path in service_paths.split(','):
service_path = service_path.strip()
ServiceManager.add_services(service_path)
if cfg["daemonize"] == "True":
daemonize(rootdir=None, umask=0, close_fds=False,
stdin=os.devnull,