Set process as daemon-like

Process was crashing when run as a Linux service
This commit is contained in:
2019-07-22 14:10:23 +02:00
parent a28bff79fb
commit bf42471fe5

View File

@@ -23,13 +23,7 @@ namespace DearFTP
var server = new FtpServer(); var server = new FtpServer();
Task.Run(() => server.Start()); server.Start();
while (Console.ReadLine() != "stop") { }
server.Stop();
Environment.Exit(0);
} }
private static void ProceedArguments(string[] args) private static void ProceedArguments(string[] args)