'tools.response_headers.on': True}}
cherrypy.tree.mount(Root(self.mgr), '/', root_conf)
self.mgr.log.info('Starting cherrypy engine...')
- cherrypy.engine.start()
+ self.start_engine()
self.mgr.log.info('Cherrypy engine started.')
+ agents_down = []
+ for h in self.mgr.cache.get_hosts():
+ if self.mgr.agent_helpers._check_agent(h):
+ agents_down.append(h)
+ self.mgr.agent_helpers._update_agent_down_healthcheck(agents_down)
# wait for the shutdown event
self.cherrypy_shutdown_event.wait()
self.cherrypy_shutdown_event.clear()