1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-02-03 13:47:14 +03:00

added "initializeUnmanaged", but right now its unused"

This commit is contained in:
Adolfo Gómez García 2020-04-28 07:44:39 +02:00
parent 9aaab57a6a
commit c1adf35c99
3 changed files with 11 additions and 0 deletions

View File

@ -78,6 +78,10 @@ class UDSActorSvc(daemon.Daemon, CommonService):
# logger.debug('Initialized, setting ready')
# Initialization is done, set machine to ready for UDS, communicate urls, etc...
self.setReady()
else:
if not self.initializeUnmanaged():
self.finish()
return
# Start listening for petitions
self.startHttpServer()

View File

@ -228,6 +228,9 @@ class CommonService: # pylint: disable=too-many-instance-attributes
return True
def initializeUnmanaged(self) -> bool:
return True
def initialize(self) -> bool:
if not self._cfg.host or not self._isAlive: # Not configured or not running
return False

View File

@ -228,6 +228,10 @@ class UDSActorSvc(win32serviceutil.ServiceFramework, CommonService):
# Initialization is done, set machine to ready for UDS, communicate urls, etc...
self.setReady()
else:
if not self.initializeUnmanaged():
self.finish()
return
# Start listening for petitions
self.startHttpServer()