Skip to content

Commit 9df8ec2

Browse files
steventuxCopilot
andcommitted
Check that service is Running when starting
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent a2dc741 commit 9df8ec2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/powershell/maintenance.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function Start-AllServices {
7171
if ($status -and $status.Status -eq 'Running') { break }
7272
Start-Sleep -Milliseconds 500
7373
}
74+
$stopwatch.Stop()
7475

7576
$finalStatus = Get-Service -Name $svc.Name -ErrorAction SilentlyContinue
7677
if (-not $finalStatus -or $finalStatus.Status -ne 'Running') {

0 commit comments

Comments
 (0)