Skip to content

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

removed forced termination in case that a previous bad termination is detected this will cause many users to be unsure what to do next an leave them helpless to simply delete the control file is the same thinig that the user is othervise forced to do

orbiterf64d9f1c6c70
diff --git a/source/yacy.java b/source/yacy.java
index 880ca3e26..b089fca97 100644
--- a/source/yacy.java
+++ b/source/yacy.java
@@ -255,11 +255,10 @@ public final class yacy {
if (f.exists()) { // another instance running? VM crash? User will have to care about this
serverLog.logSevere("STARTUP", "the file " + f + " exists, this usually means that another instance of YaCy is using this DATA-folder.");
serverLog.logSevere("STARTUP", "please make sure that DATA can be used exclusively by one YaCy. Quitting...");
- System.exit(-1);
- } else {
- f.createNewFile();
- f.deleteOnExit();
+ f.delete();
}
+ f.createNewFile();
+ f.deleteOnExit();
/*
// Testing if the yacy archive file were unzipped correctly.