mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
More logging and better handling of services
This commit is contained in:
parent
a2e237b926
commit
7eb522f871
2 changed files with 12 additions and 5 deletions
|
@ -59,13 +59,16 @@ namespace NzbDrone.Update.Providers
|
|||
_serviceProvider.Stop(ServiceProvider.NZBDRONE_SERVICE_NAME);
|
||||
}
|
||||
|
||||
//TODO:Should be able to restart service if anything beyond this point fails
|
||||
else
|
||||
{
|
||||
appType = AppType.Normal;
|
||||
}
|
||||
|
||||
//TODO:Should be able to restart service if anything beyond this point fails
|
||||
logger.Info("Killing all running processes");
|
||||
var processes = _processProvider.GetProcessByName(ProcessProvider.NzbDroneProccessName);
|
||||
foreach (var processInfo in processes)
|
||||
{
|
||||
appType = AppType.Normal;
|
||||
_processProvider.Kill(processInfo.Id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue