- From: Joshua Timberman <
>
- To: KC Braunschweig <
>
- Cc: Chef Dev <
>
- Subject: [chef-dev] Re: need help fixing CHEF-2345 unable to override supports :status for redhat services
- Date: Thu, 7 Jun 2012 19:46:26 -0600
Ohai!
On Jun 7, 2012, at 5:26, KC Braunschweig
<
>
wrote:
>
@new_resource.supports[:status] = true
>
>
The effect is that :status always = true and you can't set it to false
>
such as if you have a misbehaving 3rd party init script you can't fix.
>
This is lame.
>
>
Anyone got another angle or a way to make this work?
Have you tried using status_command parameter on the services with init
scripts that don't have status?
service "third-party" do
status_command "a command that checks if it's running"
end
You would of course use whatever command is appropriate.
Archive powered by MHonArc 2.6.16.