|
|
@ -834,20 +834,20 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
|
|
|
|
setLog(new serverLog("PLASMA"));
|
|
|
|
setLog(new serverLog("PLASMA"));
|
|
|
|
if (applyPro) this.log.logInfo("This is the pro-version of YaCy");
|
|
|
|
if (applyPro) this.log.logInfo("This is the pro-version of YaCy");
|
|
|
|
|
|
|
|
|
|
|
|
// make system tray
|
|
|
|
// make system tray TODO: enable
|
|
|
|
try {
|
|
|
|
// try {
|
|
|
|
final boolean trayIcon = getConfig("trayIcon", "false").equals("true");
|
|
|
|
// final boolean trayIcon = getConfig("trayIcon", "false").equals("true");
|
|
|
|
if (trayIcon) {
|
|
|
|
// if (trayIcon) {
|
|
|
|
System.setProperty("java.awt.headless", "false");
|
|
|
|
// System.setProperty("java.awt.headless", "false");
|
|
|
|
yacytray = new yacyTray(this, false);
|
|
|
|
// yacytray = new yacyTray(this, false);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
} catch (Exception e) {
|
|
|
|
// } catch (Exception e) {
|
|
|
|
try{
|
|
|
|
// try{
|
|
|
|
yacytray.removeTray();
|
|
|
|
// yacytray.removeTray();
|
|
|
|
} finally {
|
|
|
|
// } finally {
|
|
|
|
System.setProperty("java.awt.headless", "true");
|
|
|
|
// System.setProperty("java.awt.headless", "true");
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// remote proxy configuration
|
|
|
|
// remote proxy configuration
|
|
|
|
httpdProxyHandler.setRemoteProxyConfig(httpRemoteProxyConfig.init(this)); // TODO refactoring
|
|
|
|
httpdProxyHandler.setRemoteProxyConfig(httpRemoteProxyConfig.init(this)); // TODO refactoring
|
|
|
@ -1659,7 +1659,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
|
|
|
|
crawlQueues.close();
|
|
|
|
crawlQueues.close();
|
|
|
|
log.logConfig("SWITCHBOARD SHUTDOWN STEP 3: sending termination signal to database manager (stand by...)");
|
|
|
|
log.logConfig("SWITCHBOARD SHUTDOWN STEP 3: sending termination signal to database manager (stand by...)");
|
|
|
|
webIndex.close();
|
|
|
|
webIndex.close();
|
|
|
|
if(System.getProperty("java.awt.headless") == "false") yacytray.removeTray();
|
|
|
|
// if(System.getProperty("java.awt.headless") == "false") yacytray.removeTray(); TODO: enable
|
|
|
|
log.logConfig("SWITCHBOARD SHUTDOWN TERMINATED");
|
|
|
|
log.logConfig("SWITCHBOARD SHUTDOWN TERMINATED");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|