Disable starting as service to fix compatibility with Windows Server 2019

This commit is contained in:
John Gross
2019-07-10 18:43:32 -07:00
parent c831df74d0
commit 496a276524

View File

@@ -59,12 +59,13 @@ namespace Torch.Server
return;
}
/* Breaks on Windows Server 2019 and we don't fully support services anyway
if (!Environment.UserInteractive)
{
using (var service = new TorchService())
ServiceBase.Run(service);
return;
}
}*/
var initializer = new Initializer(workingDir);
if (!initializer.Initialize(args))