|
|
|
@ -417,7 +417,7 @@ public final class yacyRelease extends yacyVersion {
|
|
|
|
|
Log.logInfo("RESTART", "wrote restart-script to " + scriptFile.getAbsolutePath());
|
|
|
|
|
OS.execAsynchronous(scriptFile);
|
|
|
|
|
Log.logInfo("RESTART", "script is running");
|
|
|
|
|
sb.terminate(5000, "windows restart");
|
|
|
|
|
sb.terminate(10, "windows restart");
|
|
|
|
|
} catch (final IOException e) {
|
|
|
|
|
Log.logSevere("RESTART", "restart failed", e);
|
|
|
|
|
}
|
|
|
|
@ -456,7 +456,7 @@ public final class yacyRelease extends yacyVersion {
|
|
|
|
|
Log.logInfo("RESTART", "wrote restart-script to " + scriptFile.getAbsolutePath());
|
|
|
|
|
OS.execAsynchronous(scriptFile);
|
|
|
|
|
Log.logInfo("RESTART", "script is running");
|
|
|
|
|
sb.terminate(5000, "unix restart");
|
|
|
|
|
sb.terminate(10, "unix restart");
|
|
|
|
|
} catch (final IOException e) {
|
|
|
|
|
Log.logSevere("RESTART", "restart failed", e);
|
|
|
|
|
}
|
|
|
|
@ -551,7 +551,7 @@ public final class yacyRelease extends yacyVersion {
|
|
|
|
|
OS.execAsynchronous(scriptFile);
|
|
|
|
|
Log.logInfo("UPDATE", "script is running");
|
|
|
|
|
sb.setConfig("update.time.deploy", System.currentTimeMillis());
|
|
|
|
|
sb.terminate(5000, "auto-deploy for " + releaseFile.getName());
|
|
|
|
|
sb.terminate(10, "auto-deploy for " + releaseFile.getName());
|
|
|
|
|
} catch (final IOException e) {
|
|
|
|
|
Log.logSevere("UPDATE", "update failed", e);
|
|
|
|
|
}
|
|
|
|
|