我完全不了解安装未安装 init.d 文件的服务的工作流程。以下是我安装主管的秘诀。同样在boostrap的错误下方。我有 init.d 和配置文件作为模板。那么,我该如何调整逻辑让厨师工作呢?
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