diff options
author | andy-dufour <adufour@chef.io> | 2015-09-29 16:36:32 -0400 |
---|---|---|
committer | andy-dufour <adufour@chef.io> | 2015-09-29 16:36:32 -0400 |
commit | 0dc4ae50f145ea81c1faae45326dc3f59a57798d (patch) | |
tree | 927e56575e520e9d7624d3db9f31bbd3710a2893 /lib/chef/provider/service/redhat.rb | |
parent | 5d890056a1e8782af98b3d4efe4dded3494404c9 (diff) | |
download | chef-0dc4ae50f145ea81c1faae45326dc3f59a57798d.tar.gz |
REALLY adding explicit error msg if init.d script or custom command is not found.ad/3992-redhat-service
Diffstat (limited to 'lib/chef/provider/service/redhat.rb')
-rw-r--r-- | lib/chef/provider/service/redhat.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/redhat.rb b/lib/chef/provider/service/redhat.rb index dd44e441a8..3ad11a7672 100644 --- a/lib/chef/provider/service/redhat.rb +++ b/lib/chef/provider/service/redhat.rb @@ -64,7 +64,7 @@ class Chef a.assertion do custom_command_for_action?(action) || !@service_missing end - a.failure_message Chef::Exceptions::Service, "#{new_resource}: unable to locate the init.d script!" + a.failure_message Chef::Exceptions::Service, "#{new_resource}: No custom command for #{action} specified and unable to locate the init.d script!" a.whyrun "Assuming service would be disabled. The init script is not presently installed." end end |