daemon.start();
boolean wasStopped = daemon.awaitStopOrIdleTimeout(idleTimeout);
if (wasStopped) {
LOGGER.info("Daemon stopping due to stop request");
} else {
<BUG>LOGGER.info("Daemon hit idle timeout (" + idleTimeout / 1000 + " secs), stopping");
</BUG>
daemon.stop();
}
}

daemon.start();
boolean wasStopped = daemon.awaitStopOrIdleTimeout(idleTimeout);
if (wasStopped) {
LOGGER.info("Daemon stopping due to stop request");
} else {
LOGGER.info("Daemon hit idle timeout (" + idleTimeoutSecs + " secs), stopping");
daemon.stop();
}
}
