debugging log monitoring 5

This commit is contained in:
Göran Sander
2025-09-29 11:30:45 +02:00
parent 8d7ae210a2
commit 3c653bf989

View File

@@ -195,7 +195,7 @@ jobs:
if ($service) {
if ($service.Status -eq 'Running') {
Write-Host "Stopping service '$serviceName'..."
Write-Host ("Stopping service: " + $serviceName)
Stop-Service -Name $serviceName -Force -ErrorAction Stop
# Wait for service to stop
@@ -221,7 +221,7 @@ jobs:
"service_stopped=not_running" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
}
} else {
Write-Host "⚠️ Service '$serviceName' not found" -ForegroundColor Yellow
Write-Host ("Service not found: " + $serviceName) -ForegroundColor Yellow
"service_stopped=not_found" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
}