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:
parent
9aaab57a6a
commit
c1adf35c99
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user