def _on_lb(self, *ignored): def stop_haproxy(): Stop(self.args).stop_haproxy(self.component_dir) found_pidfile = self.check_pidfile() if not found_pidfile: found_pidfile = self.check_pidfile(get_haproxy_pidfile(self.component_dir)) if not found_pidfile: self.start_component( 'zato.agent.load_balancer.main', 'load-balancer', os.path.join(self.config_dir, 'repo'), stop_haproxy)
def stop_haproxy(self, component_dir): self.signal('Load-balancer', 'SIGTERM', signal.SIGTERM, get_haproxy_pidfile(component_dir), component_dir)
def stop_haproxy(self, component_dir): self.signal('Load-balancer', 'SIGTERM', signal.SIGTERM, get_haproxy_pidfile(component_dir), component_dir)
def stop_haproxy(self, component_dir): self.signal("Load-balancer", "SIGTERM", signal.SIGTERM, get_haproxy_pidfile(component_dir), component_dir)