Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Adding additional shutdown method which is neede to run yacy als windows service See: http://www.yacy-websuche.de/wiki/index.php/De:WinService
theli0fbe1a451552
diff --git a/source/yacy.java b/source/yacy.javaindex e6314317d..e4242e32f 100644--- a/source/yacy.java+++ b/source/yacy.java@@ -538,6 +538,11 @@ public final class yacy {return config;}+ static void shutdown() {+ String applicationRoot = System.getProperty("user.dir").replace('\\', '/');+ shutdown(applicationRoot);+ }+/*** Call the shutdown-page from yacy to tell it to shut down. This method is* called if you start yacy with the argument -shutdown.@@ -1579,9 +1584,11 @@ class shutdownHookThread extends Thread {serverLog.logConfig("SHUTDOWN","Shutdown via shutdown hook.");// sending the yacy main thread a shutdown signal+ serverLog.logFine("SHUTDOWN","Signaling shutdown to the switchboard.");this.sb.terminate();// waiting for the yacy thread to finish execution+ serverLog.logFine("SHUTDOWN","Waiting for main thread to finish.");this.mainThread.join();}} catch (Exception e) {