Esempio n. 1
0
    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)
Esempio n. 2
0
 def stop_haproxy(self, component_dir):
     self.signal('Load-balancer', 'SIGTERM', signal.SIGTERM, get_haproxy_pidfile(component_dir), component_dir)
Esempio n. 3
0
 def stop_haproxy(self, component_dir):
     self.signal('Load-balancer', 'SIGTERM', signal.SIGTERM, get_haproxy_pidfile(component_dir), component_dir)
Esempio n. 4
0
File: stop.py Progetto: lucval/zato
 def stop_haproxy(self, component_dir):
     self.signal("Load-balancer", "SIGTERM", signal.SIGTERM, get_haproxy_pidfile(component_dir), component_dir)