add retry to service restart

This commit is contained in:
hatharry 2016-10-11 17:18:32 +13:00
parent 71386f0ceb
commit 91225bc968
1 changed files with 1 additions and 1 deletions

View File

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