コード例 #1
0
  @Override
  protected void killImpl(ElasticsearchStatus stat) throws IOException {

    log.info("Killing {} pid {}...", getDaemonShortName(), stat.getPid());

    runCommand("/bin/kill", String.valueOf(stat.getPid()));

    log.info("Sent SIGTERM to {} pid {}", getDaemonShortName(), stat.getPid());

    stat.getFile().delete();

    log.info("Deleted {}", stat.getFile());
  }
コード例 #2
0
 @Override
 protected ElasticsearchStatus readStatusFromDisk() {
   return ElasticsearchStatus.read(ES_PID_FILE);
 }