def _await_process_dies(): success = (databroker_processes. restart_if_any_component_not_healthy()) if not success: runtime.stop(m2ee) return True return not (app_is_restarting or m2ee.runner.check_pid())
def sigusr_handler(_signo, _stack_frame): logging.debug("Handling SIGUSR...") if _signo == signal.SIGUSR1: emit(jvm={"errors": 1.0}) elif _signo == signal.SIGUSR2: emit(jvm={"ooms": 1.0}) else: # Should not happen pass runtime.stop(m2ee) sys.exit(1)
def sigterm_handler(_signo, _stack_frame): logging.debug("Handling SIGTERM...") runtime.stop(m2ee) databroker_processes.stop() sys.exit(0)
def sigterm_handler(_signo, _stack_frame): logging.debug("Handling SIGTERM...") runtime.stop(m2ee) sys.exit(0)