From 91225bc9688327e89224c91651dcec7eafa05234 Mon Sep 17 00:00:00 2001 From: hatharry Date: Tue, 11 Oct 2016 17:18:32 +1300 Subject: [PATCH] add retry to service restart --- MediaBrowser.ServerApplication/MainStartup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index e4f5f3a694..46ad714cb7 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -682,7 +682,7 @@ namespace MediaBrowser.ServerApplication WindowStyle = ProcessWindowStyle.Hidden, Verb = "runas", ErrorDialog = false, - Arguments = String.Format("/c sc stop {0} & sc start {0}", BackgroundService.GetExistingServiceName()) + Arguments = String.Format("/c sc stop {0} & sc start {0} & sc start {0}", BackgroundService.GetExistingServiceName()) }; Process.Start(startInfo); }