public void testPidFileIsCleanedUp() throws Exception { final File pidFile = new File(getClass().getSimpleName() + File.separator + "testPidFileIsCleanedUp.pid"); final LocalProcessLauncher launcher = new LocalProcessLauncher(pidFile, false); assertTrue(pidFile.exists()); launcher.close(); // TODO: launch an external JVM and then close it nicely assertFalse(pidFile.exists()); }
public void stop() { try { this.statusRequestFileWatchdog.stop(); } catch (InterruptedException e) { logger.warn("Interrupted while stopping status handler for controllable process.", e); } finally { try { this.stopRequestFileWatchdog.stop(); } catch (InterruptedException e) { logger.warn("Interrupted while stopping stop handler for controllable process.", e); } this.launcher.close(); } }
public void stop() { try { this.statusRequestFileWatchdog.stop(); } catch (InterruptedException e) { getOrCreateLogWriter().warning("Interrupted while stopping status handler for controllable process.", e); } finally { try { this.stopRequestFileWatchdog.stop(); } catch (InterruptedException e) { getOrCreateLogWriter().warning("Interrupted while stopping stop handler for controllable process.", e); } this.launcher.close(); } }