[chef] Re: Service resource on windows returning error: An instance of the service is already running.


Chronological Thread 
  • From: Ranjib Dey < >
  • To: " " < >
  • Subject: [chef] Re: Service resource on windows returning error: An instance of the service is already running.
  • Date: Tue, 7 Jul 2015 15:11:03 -0700

most likely a bug. im dont have windows machine. but if you can share stacktrace and platform/service provider detail, someone from list will be able to help

On Tue, Jul 7, 2015 at 3:06 PM, Dan-Joe Lopez < " target="_blank"> > wrote:
Hello Chefs,

I feel as though I am mistaking something here.  The basic idea of chef resources, as explained to me, is that they describe the desired state of a system.  To that end, when I call:
service “My_Service” do
action 😖tart
end

My expectation is that it will:
Start the service if My_Service is stopped
Bail out with an error if My_Service doesn’t exist, or is in an “un-startable” state
Do *nothing* if My_Service is already started, as the service is already in the desired state

Unfortunately on the latter, it is throwing an error, that an instance of the service is already running.

Is this a limitation/bug in the way that chef for windows processes services, or a bug in my expectations of the functionality?

Many thanks in advance!
Dan-Joe Lopez

Sent from Windows Mail





Archive powered by MHonArc 2.6.16.

§