Skip to content

Commit

Permalink
CHEF-3380: Don't fail redhat service on stop or disable if init scrip…
Browse files Browse the repository at this point in the history
…t is missing
  • Loading branch information
btm committed Aug 30, 2012
1 parent 4fbf833 commit 6f06f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chef/lib/chef/provider/service/redhat.rb
Expand Up @@ -45,7 +45,7 @@ def define_resource_requirements
a.failure_message Chef::Exceptions::Service, "#{chkconfig_file} does not exist!"
end

requirements.assert(:all_actions) do |a|
requirements.assert(:start, :enable, :reload, :restart) do |a|
a.assertion { !@service_missing }
a.failure_message Chef::Exceptions::Service, "#{@new_resource}: unable to locate the init.d script!"
a.whyrun "Assuming service would be disabled. The init script is not presently installed."
Expand Down

0 comments on commit 6f06f4d

Please sign in to comment.