Disable starting as service to fix compatibility with Windows Server 2019
This commit is contained in:
@@ -59,12 +59,13 @@ namespace Torch.Server
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Breaks on Windows Server 2019 and we don't fully support services anyway
|
||||||
if (!Environment.UserInteractive)
|
if (!Environment.UserInteractive)
|
||||||
{
|
{
|
||||||
using (var service = new TorchService())
|
using (var service = new TorchService())
|
||||||
ServiceBase.Run(service);
|
ServiceBase.Run(service);
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
var initializer = new Initializer(workingDir);
|
var initializer = new Initializer(workingDir);
|
||||||
if (!initializer.Initialize(args))
|
if (!initializer.Initialize(args))
|
||||||
|
Reference in New Issue
Block a user