2
0
Эх сурвалжийг харах

specify background service dependencies

Luke Pulverenti 11 жил өмнө
parent
commit
373bdf4825

+ 6 - 1
MediaBrowser.ServerApplication/BackgroundServiceInstaller.cs

@@ -19,8 +19,13 @@ namespace MediaBrowser.ServerApplication
                 StartType = ServiceStartMode.Manual,
                 ServiceName = BackgroundService.Name,
                 DisplayName = BackgroundService.DisplayName,
+
                 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