Наметил локальный вариант, но пока не уверен что он приоритетен..
This commit is contained in:
@@ -9,6 +9,7 @@ import Repository.Server.DiagnosticSignalHandler;
|
||||
import Repository.Server.ServerCode;
|
||||
import Repository.Server.ServerExchangeUnit_2021;
|
||||
import javafx.util.Pair;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import sun.misc.SignalHandler;
|
||||
|
||||
import javax.activation.DataHandler;
|
||||
@@ -177,7 +178,12 @@ public abstract class RepositoryServer<D extends Database> {
|
||||
public void StartAction() throws Exception {
|
||||
}
|
||||
public void Start() throws Exception {
|
||||
/*
|
||||
File started = new File(Constants.STARTED);
|
||||
if (started.exists())
|
||||
FileUtils.forceDelete(started);
|
||||
Utils.createEmptyFile(Constants.STARTED);
|
||||
*/
|
||||
DiagnosticSignalHandler.install("TERM", signalHandler);
|
||||
DiagnosticSignalHandler.install("INT", signalHandler);
|
||||
DiagnosticSignalHandler.install("ABRT", signalHandler);
|
||||
|
||||
Reference in New Issue
Block a user