Add PIDFile CLI option

This commit is contained in:
kaso17
2017-12-04 12:20:22 +01:00
parent 105bd85441
commit 2934bfb3e7
6 changed files with 56 additions and 12 deletions

View File

@@ -257,7 +257,7 @@ namespace Jackett.Services
private void StartUpdate(string updaterExePath, string installLocation, bool isWindows, bool NoRestart)
{
var exe = Path.GetFileName(ExePath());
var args = string.Join(" ", Environment.GetCommandLineArgs().Skip(1));
var args = string.Join(" ", Environment.GetCommandLineArgs().Skip(1).Select(a => a.Contains(" ") ? "\"" +a + "\"" : a )).Replace("\"", "\\\"");
var startInfo = new ProcessStartInfo();
@@ -299,7 +299,7 @@ namespace Jackett.Services
{
logger.Info("Exiting Jackett..");
lockService.Signal();
Environment.Exit(0);
Engine.Exit(0);
}
}
}