From 9b5e56704e00ea0f667e8f5bb71a762e5fb47f1b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 10 Oct 2013 21:48:43 -0700 Subject: [PATCH 1/2] Service now depends on Tcpip --- src/NzbDrone.Common/ServiceProvider.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NzbDrone.Common/ServiceProvider.cs b/src/NzbDrone.Common/ServiceProvider.cs index 8c2206a63..94a9c2265 100644 --- a/src/NzbDrone.Common/ServiceProvider.cs +++ b/src/NzbDrone.Common/ServiceProvider.cs @@ -71,6 +71,7 @@ namespace NzbDrone.Common serviceInstaller.ServiceName = serviceName; serviceInstaller.Description = "NzbDrone Application Server"; serviceInstaller.StartType = ServiceStartMode.Automatic; + serviceInstaller.ServicesDependedOn = new[] { "Tcpip" }; serviceInstaller.Parent = installer; From 93e9816d24238451233bf4e9f916f21bb854ee63 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 11 Oct 2013 15:45:45 -0700 Subject: [PATCH 2/2] Adding a dependency on EventLog --- src/NzbDrone.Common/ServiceProvider.cs | 2 +- src/ServiceHelpers/ServiceInstall/ServiceHelper.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Common/ServiceProvider.cs b/src/NzbDrone.Common/ServiceProvider.cs index 94a9c2265..7b140fb9e 100644 --- a/src/NzbDrone.Common/ServiceProvider.cs +++ b/src/NzbDrone.Common/ServiceProvider.cs @@ -71,7 +71,7 @@ namespace NzbDrone.Common serviceInstaller.ServiceName = serviceName; serviceInstaller.Description = "NzbDrone Application Server"; serviceInstaller.StartType = ServiceStartMode.Automatic; - serviceInstaller.ServicesDependedOn = new[] { "Tcpip" }; + serviceInstaller.ServicesDependedOn = new[] { "EventLog", "Tcpip" }; serviceInstaller.Parent = installer; diff --git a/src/ServiceHelpers/ServiceInstall/ServiceHelper.cs b/src/ServiceHelpers/ServiceInstall/ServiceHelper.cs index e4b6b04a4..e7715cbb8 100644 --- a/src/ServiceHelpers/ServiceInstall/ServiceHelper.cs +++ b/src/ServiceHelpers/ServiceInstall/ServiceHelper.cs @@ -26,7 +26,7 @@ namespace ServiceInstall { if (!File.Exists(NzbDroneExe)) { - Console.WriteLine("Unable to find NzbDrone.exe in the current directory."); + Console.WriteLine("Unable to find NzbDrone.Console.exe in the current directory."); return; }