protected CommandLine getShutdownScriptCommand(String basePath) { String pid = ProcessUtil.getElasticsearchPid(basePath); return ProcessUtil.buildKillCommandLine(pid); }
try pid = ProcessUtil.getElasticsearchPid(config.getBaseDir()); log.debug("Read PID '" + pid + "' from pid file");