Updating service provider with Lidarr name

pull/6/head
Matthew Despain 8 years ago
parent d14111f914
commit ea01ee335b

@ -1,4 +1,4 @@
using System; using System;
using System.IO; using System.IO;
using NLog; using NLog;
using NzbDrone.Common; using NzbDrone.Common;
@ -30,7 +30,7 @@ namespace NzbDrone.Update.UpdateEngine
public void Start(AppType appType, string installationFolder) public void Start(AppType appType, string installationFolder)
{ {
_logger.Info("Starting NzbDrone"); _logger.Info("Starting Lidarr");
if (appType == AppType.Service) if (appType == AppType.Service)
{ {
try try
@ -40,7 +40,7 @@ namespace NzbDrone.Update.UpdateEngine
} }
catch (InvalidOperationException e) 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); StartConsole(installationFolder);
} }
} }
@ -56,18 +56,18 @@ namespace NzbDrone.Update.UpdateEngine
private void StartService() private void StartService()
{ {
_logger.Info("Starting NzbDrone service"); _logger.Info("Starting Lidarr service");
_serviceProvider.Start(ServiceProvider.NZBDRONE_SERVICE_NAME); _serviceProvider.Start(ServiceProvider.NZBDRONE_SERVICE_NAME);
} }
private void StartWinform(string installationFolder) private void StartWinform(string installationFolder)
{ {
Start(installationFolder, "NzbDrone.exe"); Start(installationFolder, "Lidarr.exe");
} }
private void StartConsole(string installationFolder) private void StartConsole(string installationFolder)
{ {
Start(installationFolder, "NzbDrone.Console.exe"); Start(installationFolder, "Lidarr.Console.exe");
} }
private void Start(string installationFolder, string fileName) private void Start(string installationFolder, string fileName)

Loading…
Cancel
Save