예제 #1
0
    def stop(self):
        """
        Override `stop` method to properly exit JMXFetch.
        """
        if self._proc is not None and self._proc.is_running():
            JMXFiles.write_exit_file()
            try:
                self._proc.wait(timeout=self._JMX_STOP_TIMEOUT)
            except psutil.TimeoutExpired:
                log.debug("JMXFetch process didn't stop after %ss, killing it", self._JMX_STOP_TIMEOUT)

        super(JMXFetchProcess, self).stop()
예제 #2
0
파일: service.py 프로젝트: alq666/dd-agent
    def stop(self):
        """
        Override `stop` method to properly exit JMXFetch.
        """
        if self._proc is not None and self._proc.is_running():
            JMXFiles.write_exit_file()
            try:
                self._proc.wait(timeout=self._JMX_STOP_TIMEOUT)
            except psutil.TimeoutExpired:
                log.debug("JMXFetch process didn't stop after %ss, killing it", self._JMX_STOP_TIMEOUT)

        super(JMXFetchProcess, self).stop()
예제 #3
0
파일: agent.py 프로젝트: PagerDuty/dd-agent
 def terminate(self):
     """
     Override `terminate` method to properly exit JMXFetch.
     """
     JMXFiles.write_exit_file()
     self.join()
예제 #4
0
파일: agent.py 프로젝트: wk8/dd-agent
 def terminate(self):
     """
     Override `terminate` method to properly exit JMXFetch.
     """
     JMXFiles.write_exit_file()
     self.join()
예제 #5
0
 def terminate(self):
     JMXFiles.write_exit_file()
     self.join()