Recipe: rabbitmq::default
-
service[rabbitmq-server] action restart
-
service[rabbitmq-server]: No custom command for restart specified and unable to locate the init.d script!
···
================================================================================
Error executing action restart
on resource ‘service[rabbitmq-server]’
================================================================================
Chef::Exceptions::Service
service[rabbitmq-server]: No custom command for restart specified and unable to locate the init.d script!
Resource Declaration:
In /tmp/kitchen/cache/cookbooks/rabbitmq/recipes/default.rb
275: service node[‘rabbitmq’][‘service_name’] do
276: retries node[‘rabbitmq’][‘retry’]
277: retry_delay node[‘rabbitmq’][‘retry_delay’]
278: action [:enable, :start]
279: supports :status => true, :restart => true
280: provider Chef::Provider::Service::Upstart if node[‘rabbitmq’][‘job_control’] == ‘upstart’
281: provider Chef::Provider::Service::Init if node[‘rabbitmq’][‘job_control’] == ‘init’
282: end
283: else
Compiled Resource:
Declared in /tmp/kitchen/cache/cookbooks/rabbitmq/recipes/default.rb:275:in `from_file’
service(“rabbitmq-server”) do
action [:enable, :start]
default_guard_interpreter :default
service_name “rabbitmq-server”
enabled nil
running nil
masked nil
pattern “rabbitmq-server”
declared_type :service
cookbook_name “rabbitmq”
recipe_name “default”
retries 0
retry_delay 2
supports {:status=>true, :restart=>true}
end
System Info:
chef_version=13.5.3
platform=amazon
platform_version=2017.09
ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
program_name=chef-client worker: ppid=2938;start=18:23:13;
executable=/opt/chef/bin/chef-client
Latest centos the problem is not getting resolved. I have passed the user “rabbitmq” explicitly from my recipe-
user “rabbitmq”
include_recipe ‘sensu::default’
include_recipe ‘sensu::rabbitmq’
But its not working