예제 #1
0
파일: agent.py 프로젝트: Osterjour/dd-agent
 def run(self):
     log.debug("Windows Service - Starting forwarder")
     set_win32_cert_path()
     port = self.config.get('listen_port', 17123)
     if port is None:
         port = 17123
     else:
         port = int(port)
     app_config = get_config(parse_args = False)
     self.forwarder = Application(port, app_config, watchdog=False)
     self.forwarder.run()
예제 #2
0
파일: agent.py 프로젝트: yekeqiang/dd-agent
 def run(self):
     log.debug("Windows Service - Starting forwarder")
     set_win32_cert_path()
     port = self.config.get('listen_port', 17123)
     if port is None:
         port = 17123
     else:
         port = int(port)
     app_config = get_config(parse_args=False)
     self.forwarder = Application(port, app_config, watchdog=False)
     self.forwarder.run()
예제 #3
0
파일: agent.py 프로젝트: jkoppe/dd-agent
 def __init__(self, agentConfig):
     threading.Thread.__init__(self)
     set_win32_cert_path()
     self.config = get_config(parse_args=False)
     port = agentConfig.get('listen_port', 17123)
     if port is None:
         port = 17123
     else:
         port = int(port)
     self.port = port
     self.forwarder = Application(port, agentConfig, watchdog=False)
예제 #4
0
파일: agent.py 프로젝트: CaptTofu/dd-agent
 def __init__(self, agentConfig):
     threading.Thread.__init__(self)
     set_win32_cert_path()
     self.config = get_config(parse_args = False)
     port = agentConfig.get('listen_port', 17123)
     if port is None:
         port = 17123
     else:
         port = int(port)
     self.port = port
     self.forwarder = Application(port, agentConfig, watchdog=False)
예제 #5
0
파일: agent.py 프로젝트: jhotta/dd-agent
 def run(self):
     from config import initialize_logging; initialize_logging('windows_forwarder')
     log.debug("Windows Service - Starting forwarder")
     set_win32_cert_path()
     port = self.config.get('listen_port', 17123)
     if port is None:
         port = 17123
     else:
         port = int(port)
     app_config = get_config(parse_args = False)
     self.forwarder = Application(port, app_config, watchdog=False)
     try:
         self.forwarder.run()
     except Exception:
         log.exception("Uncaught exception in the forwarder")
예제 #6
0
 def run(self):
     from config import initialize_logging; initialize_logging('windows_forwarder')
     log.debug("Windows Service - Starting forwarder")
     set_win32_cert_path()
     port = self.config.get('listen_port', 17123)
     if port is None:
         port = 17123
     else:
         port = int(port)
     app_config = get_config(parse_args=False)
     self.forwarder = Application(port, app_config, watchdog=False)
     try:
         self.forwarder.run()
     except Exception:
         log.exception("Uncaught exception in the forwarder")