private void createPidFile() { deleteQuiet(pidFile); writeText("" + getPID(), pidFile); }
public static void main(String[] args) { int pid = NativeUtils.getPID(); LOGGER.info("PID: " + pid); writeText("" + pid, new File(getUserDir(), "worker.pid")); try { startWorker(); } catch (Exception e) { ExceptionReporter.report(null, e); exitWithError(LOGGER, "Could not start Hazelcast Simulator Worker!", e); } }
logInputArguments(); logInterestingSystemProperties(); echo("process ID: " + getPID());