Merge pull request #2218 from hatharry/dev

add retry to service restart
This commit is contained in:
Luke 2016-10-11 00:46:07 -04:00 committed by GitHub
commit d1f213dbf5

View File

@ -704,7 +704,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);
}