- From: David Montgomery <
>
- To:
- Subject: [chef] Cent get a service to work when I having templates for init scripts
- Date: Fri, 18 May 2012 06:25:15 +0800
Hi,
I totally do not get the workflow for installing a service where the
init.d file is not installed. Below is my recipe for installijg
supervisor. Also below in the error on boostrap. I have the init.d
and config file as templates. So, how do I adjust the logic to get
chef to work?
ec2-175-41-185-174.ap-southeast-1.compute.amazonaws.com [Thu, 17 May
2012 22:18:02 +0000] ERROR: Running exception handlers
ec2-175-41-185-174.ap-southeast-1.compute.amazonaws.com [Thu, 17 May
2012 22:18:02 +0000] FATAL: Saving node information to
/var/chef/cache/failed-run-data.json
ec2-175-41-185-174.ap-southeast-1.compute.amazonaws.com [Thu, 17 May
2012 22:18:02 +0000] ERROR: Exception handlers complete
ec2-175-41-185-174.ap-southeast-1.compute.amazonaws.com [Thu, 17 May
2012 22:18:02 +0000] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
ec2-175-41-185-174.ap-southeast-1.compute.amazonaws.com [Thu, 17 May
2012 22:18:02 +0000] FATAL: Errno::ENOENT: service[supervisord]
(supervisor::default line 23) had an error: Errno::ENOENT: No such
file or directory - /etc/init.d/supervisord restart
easy_install_package "supervisor" do
action :install
end
template "/etc/supervisord.conf" do
path "/etc/supervisord.conf"
source "supervisord.conf.erb"
owner "root"
group "root"
mode "0600"
end
template "/etc/init.d/supervisord" do
path "/etc/init.d/supervisord"
source "supervisord.erb"
owner "root"
group "root"
mode "0755"
#notifies :start, "service[supervisord]", :immediately
end
service "supervisord" do
supports :restart => true, :start => true, :stop => true, :reload => true
action [ :enable]
subscribes :start, resources(:template =>
"/etc/init.d/supervisord"), :immediately
end
- [chef] Cent get a service to work when I having templates for init scripts, David Montgomery, 05/17/2012
Archive powered by MHonArc 2.6.16.