Created
March 28, 2014 16:37
-
-
Save adamcrews/9837172 to your computer and use it in GitHub Desktop.
kill stuck mcollective process on windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec { 'kill_stuck_mcollective': | |
command => 'stop-process -force (get-wmiobject Win32_Service -filter \'name="pe-mcollective"\').ProcessID', | |
unless => 'if ((get-service "pe-mcollective" | select status).Status -eq "StopPending") { exit 1 }', | |
provider => powershell, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment