puppetlabs/puppet — pull request #861 by joshcooper (2012-06-15 04:59:00+00:00)
Title: (#13489) Synchronously start and stop windows services

Previously the Windows service provider could get into a race condition when starting and stopping services due to the asynchronous nature of the `StartService` and `StopService` methods that the win32-service gem was calling. This commit changes the provider to use the `net.exe` command instead, which blocks until the service completes its state transition. Also added an acceptance test based on the customer ticket.