Browse Source

specify background service dependencies

Luke Pulverenti 11 years ago
parent
commit
373bdf4825
1 changed files with 6 additions and 1 deletions
  1. 6 1
      MediaBrowser.ServerApplication/BackgroundServiceInstaller.cs

+ 6 - 1
MediaBrowser.ServerApplication/BackgroundServiceInstaller.cs

@@ -19,8 +19,13 @@ namespace MediaBrowser.ServerApplication
                 StartType = ServiceStartMode.Manual,
                 StartType = ServiceStartMode.Manual,
                 ServiceName = BackgroundService.Name,
                 ServiceName = BackgroundService.Name,
                 DisplayName = BackgroundService.DisplayName,
                 DisplayName = BackgroundService.DisplayName,
+
                 DelayedAutoStart = true,
                 DelayedAutoStart = true,
-                Description = "The windows background service for Media Browser Server."
+
+                Description = "The windows background service for Media Browser Server.",
+
+                // Will ensure the network is available
+                ServicesDependedOn = new[] { "LanmanServer" }
             };
             };
 
 
             // Microsoft didn't add the ability to add a
             // Microsoft didn't add the ability to add a