@Override //AbstractService protected void serviceStop() throws Exception { completed(); stopForkedProcess(); }
@Override //AbstractService protected void serviceStop() throws Exception { completed(); stopForkedProcess(); }
@Override // notification from executed process public void onProcessExited(LongLivedProcess process, int uncorrected, int code) { try { synchronized (this) { completed(); //note whether or not the service had already stopped LOG.debug("Process has exited with exit code {}", code); if (code != 0) { reportFailure(code, getName() + " failed with code " + code); } } } finally { stop(); } }
@Override // notification from executed process public void onProcessExited(LongLivedProcess process, int uncorrected, int code) { try { synchronized (this) { completed(); //note whether or not the service had already stopped LOG.debug("Process has exited with exit code {}", code); if (code != 0) { reportFailure(code, getName() + " failed with code " + code); } } } finally { stop(); } }