diff --git a/actors/src/udsactor/linux/UDSActorService.py b/actors/src/udsactor/linux/UDSActorService.py index 5a48c9a9..6c7eac42 100644 --- a/actors/src/udsactor/linux/UDSActorService.py +++ b/actors/src/udsactor/linux/UDSActorService.py @@ -36,7 +36,6 @@ from udsactor import operations from udsactor.service import CommonService from udsactor.service import initCfg from udsactor.service import IPC_PORT -from udsactor.service import cfg from udsactor import ipc @@ -102,13 +101,17 @@ class UDSActorSvc(Daemon, CommonService): logger.fatal('Join domain is not supported on linux platforms right now') def run(self): - initCfg() # Gets a local copy of config to get "reboot" + cfg = initCfg() # Gets a local copy of config to get "reboot" + + logger.debug('CFG: {}'.format(cfg)) if cfg is not None: self.rebootMachineAfterOp = cfg.get('reboot', False) else: self.rebootMachineAfterOp = False + logger.info('Rebbot after is {}'.format(self.rebootMachineAfterOp)) + logger.debug('Running Daemon') set_proctitle('UDSActorDaemon') diff --git a/actors/src/udsactor/service.py b/actors/src/udsactor/service.py index 252b94b3..024a7532 100644 --- a/actors/src/udsactor/service.py +++ b/actors/src/udsactor/service.py @@ -70,6 +70,8 @@ def initCfg(): cfg = None break + return cfg + class CommonService(object): def __init__(self):