mirror of
https://github.com/ptarmiganlabs/butler-sos.git
synced 2025-12-19 17:58:18 -05:00
debugging log monitoring 5
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user