mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
GCE/Windows: ignore stopping errors for stackdriver
This commit is contained in:
parent
946087b422
commit
eadacaf058
@ -1084,7 +1084,7 @@ $STACKDRIVER_ROOT = 'C:\Program Files (x86)\Stackdriver'
|
|||||||
# `Restart-Service StackdriverLogging` may fail because StackdriverLogging
|
# `Restart-Service StackdriverLogging` may fail because StackdriverLogging
|
||||||
# sometimes is unstoppable, so we work around it by killing the processes.
|
# sometimes is unstoppable, so we work around it by killing the processes.
|
||||||
function Restart-StackdriverLoggingAgent {
|
function Restart-StackdriverLoggingAgent {
|
||||||
Stop-Service -NoWait StackdriverLogging
|
Stop-Service -NoWait -ErrorAction Ignore StackdriverLogging
|
||||||
# TODO: check periodically to lower the wait time
|
# TODO: check periodically to lower the wait time
|
||||||
Start-Sleep 10
|
Start-Sleep 10
|
||||||
if ((Get-service StackdriverLogging).Status -ne 'Stopped') {
|
if ((Get-service StackdriverLogging).Status -ne 'Stopped') {
|
||||||
|
Loading…
Reference in New Issue
Block a user