forked from shaba/openuds
last fixes
This commit is contained in:
parent
2664be7ec4
commit
548f44b1a7
@ -36,7 +36,6 @@ from udsactor import operations
|
|||||||
from udsactor.service import CommonService
|
from udsactor.service import CommonService
|
||||||
from udsactor.service import initCfg
|
from udsactor.service import initCfg
|
||||||
from udsactor.service import IPC_PORT
|
from udsactor.service import IPC_PORT
|
||||||
from udsactor.service import cfg
|
|
||||||
|
|
||||||
from udsactor import ipc
|
from udsactor import ipc
|
||||||
|
|
||||||
@ -102,13 +101,17 @@ class UDSActorSvc(Daemon, CommonService):
|
|||||||
logger.fatal('Join domain is not supported on linux platforms right now')
|
logger.fatal('Join domain is not supported on linux platforms right now')
|
||||||
|
|
||||||
def run(self):
|
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:
|
if cfg is not None:
|
||||||
self.rebootMachineAfterOp = cfg.get('reboot', False)
|
self.rebootMachineAfterOp = cfg.get('reboot', False)
|
||||||
else:
|
else:
|
||||||
self.rebootMachineAfterOp = False
|
self.rebootMachineAfterOp = False
|
||||||
|
|
||||||
|
logger.info('Rebbot after is {}'.format(self.rebootMachineAfterOp))
|
||||||
|
|
||||||
logger.debug('Running Daemon')
|
logger.debug('Running Daemon')
|
||||||
set_proctitle('UDSActorDaemon')
|
set_proctitle('UDSActorDaemon')
|
||||||
|
|
||||||
|
@ -70,6 +70,8 @@ def initCfg():
|
|||||||
cfg = None
|
cfg = None
|
||||||
break
|
break
|
||||||
|
|
||||||
|
return cfg
|
||||||
|
|
||||||
|
|
||||||
class CommonService(object):
|
class CommonService(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user