Commit bace35cc by Szeberényi Imre

timo fix

parent 72cef16b
......@@ -33,8 +33,8 @@ def watch():
timo_base = 20
timo = timo_base
sleep(6*timo) # boot process may have triggered the agent, so we are patient
while True:
sleep(timo) # boot process may already started it, so we waiting frist
if not check_service(service_name):
logger.info("Service %s is not running.", service_name)
try:
......@@ -46,7 +46,8 @@ def watch():
logger.exception("Cant start service %s new timo: %s" % (service_name, timo))
if stopped:
return
sleep(timo)
class AppServerSvc (win32serviceutil.ServiceFramework):
_svc_name_ = "circle-watchdog"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment