|
|
@ -8,8 +8,6 @@ import signal
|
|
|
|
import pdb
|
|
|
|
import pdb
|
|
|
|
import orchestratorServer
|
|
|
|
import orchestratorServer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Чтение конфигурации
|
|
|
|
#Чтение конфигурации
|
|
|
|
lDaemonConfigurationFile = codecs.open("orchestratorConfiguration.json", "r","utf_8_sig")
|
|
|
|
lDaemonConfigurationFile = codecs.open("orchestratorConfiguration.json", "r","utf_8_sig")
|
|
|
|
lDaemonConfigurationJSONString = lDaemonConfigurationFile.read()
|
|
|
|
lDaemonConfigurationJSONString = lDaemonConfigurationFile.read()
|
|
|
@ -23,6 +21,8 @@ lDaemonLoopSeconds=lDaemonConfigurationObject["loopSeconds"]
|
|
|
|
lDaemonActivityLogDict={} #Словарь отработанных активностей, ключ - кортеж (<activityType>, <datetime>, <processPath || processName>, <processArgs>)
|
|
|
|
lDaemonActivityLogDict={} #Словарь отработанных активностей, ключ - кортеж (<activityType>, <datetime>, <processPath || processName>, <processArgs>)
|
|
|
|
lDaemonStartDateTime=datetime.datetime.now()
|
|
|
|
lDaemonStartDateTime=datetime.datetime.now()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
orchestratorServer.mActivityLogDict = lDaemonActivityLogDict
|
|
|
|
|
|
|
|
|
|
|
|
#Инициализация сервера
|
|
|
|
#Инициализация сервера
|
|
|
|
lThreadServer = orchestratorServer.RobotDaemonServer("ServerThread",lDaemonConfigurationObject)
|
|
|
|
lThreadServer = orchestratorServer.RobotDaemonServer("ServerThread",lDaemonConfigurationObject)
|
|
|
|
lThreadServer.start()
|
|
|
|
lThreadServer.start()
|
|
|
|