public synchronized P start() throws IOException { if (stopped) throw new RuntimeException("Already stopped"); P start = start(distribution, config, runtimeConfig); logger.info("start {}", config); addStopable(start); return start; }
/** * use stop (this calls stop anyway) */ @Deprecated public synchronized void cleanup() { stop(); }
this.distribution = distribution; this.pidFile = pidFile(this.executable.getFile().executable()); getCommandLine(distribution, config, this.executable.getFile())), getEnvironment(distribution, config, this.executable.getFile()), true); if (runtimeConfig.isDaemonProcess() && !executable.isRegisteredJobKiller()) { ProcessControl.addShutdownHook(new JobKiller()); registeredJobKiller = true;
AbstractPGProcess proc = exec.start(); logWatch.waitForResult(DEFAULT_CMD_TIMEOUT); if (!logWatch.isInitWithSuccess() && !silent) {
this.distribution = distribution; this.pidFile = pidFile(this.executable.getFile().executable()); getCommandLine(distribution, config, this.executable.getFile())), getEnvironment(distribution, config, this.executable.getFile()), true); if (runtimeConfig.isDaemonProcess() && !executable.isRegisteredJobKiller()) { ProcessControl.addShutdownHook(new JobKiller()); registeredJobKiller = true;
public synchronized P start() throws IOException { if (stopped) throw new RuntimeException("Already stopped"); P start = start(distribution, config, runtimeConfig); logger.info("start {}", config); addStopable(start); return start; }
/** * use stop (this calls stop anyway) */ @Deprecated public synchronized void cleanup() { stop(); }