Commit bace35cc by Szeberényi Imre

timo fix

parent 72cef16b
...@@ -33,8 +33,8 @@ def watch(): ...@@ -33,8 +33,8 @@ def watch():
timo_base = 20 timo_base = 20
timo = timo_base timo = timo_base
sleep(6*timo) # boot process may have triggered the agent, so we are patient
while True: while True:
sleep(timo) # boot process may already started it, so we waiting frist
if not check_service(service_name): if not check_service(service_name):
logger.info("Service %s is not running.", service_name) logger.info("Service %s is not running.", service_name)
try: try:
...@@ -46,7 +46,8 @@ def watch(): ...@@ -46,7 +46,8 @@ def watch():
logger.exception("Cant start service %s new timo: %s" % (service_name, timo)) logger.exception("Cant start service %s new timo: %s" % (service_name, timo))
if stopped: if stopped:
return return
sleep(timo)
class AppServerSvc (win32serviceutil.ServiceFramework): class AppServerSvc (win32serviceutil.ServiceFramework):
_svc_name_ = "circle-watchdog" _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