Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Remembering Crawler-isPaused setting

thelib70de495a0df
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java
index d8e9d9b83..070d0190a 100644
--- a/source/de/anomic/plasma/plasmaSwitchboard.java
+++ b/source/de/anomic/plasma/plasmaSwitchboard.java
@@ -298,6 +298,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
catch (NumberFormatException e) { remoteport = 3128; }
crawlSlots = Integer.parseInt(getConfig("crawler.MaxActiveThreads", "10"));
+ this.crawlingIsPaused = Boolean.valueOf(getConfig("crawler.isPaused", "false")).booleanValue();
plasmaCrawlLoader.switchboard = this;
this.cacheLoader = new plasmaCrawlLoader(
this.cacheManager,
@@ -656,6 +657,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
synchronized(this.crawlingPausedSync) {
this.crawlingIsPaused = true;
}
+ setConfig("crawler.isPaused", "true");
}
/**
@@ -668,6 +670,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
this.crawlingPausedSync.notifyAll();
}
}
+ setConfig("crawler.isPaused", "false");
}
/**
diff --git a/yacy.init b/yacy.init
index a791f00eb..75484fba0 100644
--- a/yacy.init
+++ b/yacy.init
@@ -510,6 +510,7 @@ onlineCautionDelay=30000
crawler.acceptLanguage=en-us,en;q=0.5
crawler.acceptCharset=ISO-8859-1,utf-8;q=0.7,*;q=0.7
crawler.clientTimeout=9000
+crawler.isPaused=false
# maximum number of crawler threads
crawler.MaxActiveThreads = 10