mirror of
https://github.com/Readarr/Readarr.git
synced 2026-01-30 08:42:32 -05:00
Updating service provider with Lidarr name
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
using NLog;
|
||||
using NzbDrone.Common;
|
||||
@@ -30,7 +30,7 @@ public StartNzbDrone(IServiceProvider serviceProvider, IProcessProvider processP
|
||||
|
||||
public void Start(AppType appType, string installationFolder)
|
||||
{
|
||||
_logger.Info("Starting NzbDrone");
|
||||
_logger.Info("Starting Lidarr");
|
||||
if (appType == AppType.Service)
|
||||
{
|
||||
try
|
||||
@@ -40,7 +40,7 @@ public void Start(AppType appType, string installationFolder)
|
||||
}
|
||||
catch (InvalidOperationException e)
|
||||
{
|
||||
_logger.Warn(e, "Couldn't start NzbDrone Service (Most likely due to permission issues). falling back to console.");
|
||||
_logger.Warn(e, "Couldn't start Lidarr Service (Most likely due to permission issues). falling back to console.");
|
||||
StartConsole(installationFolder);
|
||||
}
|
||||
}
|
||||
@@ -56,18 +56,18 @@ public void Start(AppType appType, string installationFolder)
|
||||
|
||||
private void StartService()
|
||||
{
|
||||
_logger.Info("Starting NzbDrone service");
|
||||
_logger.Info("Starting Lidarr service");
|
||||
_serviceProvider.Start(ServiceProvider.NZBDRONE_SERVICE_NAME);
|
||||
}
|
||||
|
||||
private void StartWinform(string installationFolder)
|
||||
{
|
||||
Start(installationFolder, "NzbDrone.exe");
|
||||
Start(installationFolder, "Lidarr.exe");
|
||||
}
|
||||
|
||||
private void StartConsole(string installationFolder)
|
||||
{
|
||||
Start(installationFolder, "NzbDrone.Console.exe");
|
||||
Start(installationFolder, "Lidarr.Console.exe");
|
||||
}
|
||||
|
||||
private void Start(string installationFolder, string fileName)
|
||||
|
||||
Reference in New Issue
Block a user