Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- included patch from http://forum.yacy-websuche.de/viewtopic.php?p=7193#p7193 - fixed problem with crawl profile editor after deletion of a crawl profile
orbiterd03940f2ec65
diff --git a/htroot/CrawlProfileEditor_p.java b/htroot/CrawlProfileEditor_p.javaindex 30ed6f471..b91adffd4 100644--- a/htroot/CrawlProfileEditor_p.java+++ b/htroot/CrawlProfileEditor_p.java@@ -87,7 +87,8 @@ public class CrawlProfileEditor_p {if (post != null) {if (post.containsKey("terminate")) {// termination of a crawl: shift the crawl from active to passive- sb.profilesPassiveCrawls.newEntry(sb.profilesActiveCrawls.getEntry(handle).map());+ plasmaCrawlProfile.entry entry = sb.profilesActiveCrawls.getEntry(handle);+ if (entry != null) sb.profilesPassiveCrawls.newEntry(entry.map());sb.profilesActiveCrawls.removeEntry(handle);// delete all entries from the crawl queue that are deleted heresb.crawlQueues.noticeURL.removeByProfileHandle(handle);diff --git a/startYACY.bat b/startYACY.batindex f1088b732..df5c5c434 100644--- a/startYACY.bat+++ b/startYACY.bat@@ -14,6 +14,7 @@ set jms=set javacmd=-Xmx64m -Xms10mset priolvl=0set priority=/NORMAL+if exist DATA\SETTINGS\httpProxy.conf GoTo :RENAMEINDEXif exist DATA\SETTINGS\yacy.conf GoTo :GETSTARTOPTS:STARTJAVA@@ -36,6 +37,17 @@ start "YaCy" %priority% /B /WAIT java %javacmd% -classpath %CLASSPATH% yacyif not exist DATA\yacy.restart GoTo :ENDdel DATA\yacy.restart+Rem PUBLIC is now freeworld (r4575)+:RENAMEINDEX+for /F "tokens=1,2 delims==" %%i in (DATA\SETTINGS\httpProxy.conf) do (+ if "%%i"=="network.unit.name" set networkname=%%j+)+if not defined networkname set networkname=PUBLIC+cd DATA\INDEX+ren PUBLIC %networkname%+cd ..+cd ..+Rem This target is used to read java runtime parameters out of the yacy config file:GETSTARTOPTSfor /F "tokens=1,2 delims==" %%i in (DATA\SETTINGS\yacy.conf) do (diff --git a/startYACY_noconsole.bat b/startYACY_noconsole.batindex d26d111ab..ae78ca43b 100644--- a/startYACY_noconsole.bat+++ b/startYACY_noconsole.bat@@ -11,9 +11,10 @@ For %%X in (libx/*.jar) Do Call %0 CPGEN libx\%%XREM Please change the "javastart" settings in the web-interface "Basic Configuration" -> "Advanced"set jmx=set jms=-set javacmd=-Xmx64m -Xms10m+set javacmd=-Xmx94m -Xms94mset priolvl=0set priority=/NORMAL+if exist DATA\SETTINGS\httpProxy.conf GoTo :RENAMEINDEXif exist DATA\SETTINGS\yacy.conf GoTo :GETSTARTOPTS:STARTJAVA@@ -26,6 +27,17 @@ Echo You can close the console safely now.GoTo :END+Rem PUBLIC is now freeworld (r4575)+:RENAMEINDEX+for /F "tokens=1,2 delims==" %%i in (DATA\SETTINGS\httpProxy.conf) do (+ if "%%i"=="network.unit.name" set networkname=%%j+)+if not defined networkname set networkname=PUBLIC+cd DATA\INDEX+ren PUBLIC %networkname%+cd ..+cd ..+Rem This target is used to read java runtime parameters out of the yacy config file:GETSTARTOPTSfor /F "tokens=1,2 delims==" %%i in (DATA\SETTINGS\yacy.conf) do (