@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());
  }
 @Override
 protected ElasticsearchStatus readStatusFromDisk() {
   return ElasticsearchStatus.read(ES_PID_FILE);
 }