in src/java/org/apache/fulcrum/yaafi/service/shutdown/ShutdownServiceImpl.java [180:206]
public void run() {
while (this.terminateNow == false) {
try {
Thread.sleep(this.interval);
} catch (InterruptedException e) {
// nothing to do
}
if (this.hasShutdownEntry() && this.getShutdownEntry().hasChanged()
&& this.serviceManager instanceof Disposable) {
if (this.getShutdownEntry().isUseSystemExit()) {
this.getLogger().warn("Forcing a shutdown using System.exit() ...");
} else {
this.getLogger().warn("Forcing a shutdown ...");
}
// create a demon thread to shutdown the container
Shutdown shutdown = new Shutdown((Disposable) this.serviceManager,
this.getShutdownEntry().isUseSystemExit());
Thread shutdownThread = new Thread(shutdown, "ShutdownServiceThread");
shutdownThread.setDaemon(true);
shutdownThread.start();
}
}
}