0
我完全没有获得安装 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
我的答案中,我错过了任何情况吗?我能做些什么来改善它? –
您是否找到解决此问题的解决方案?请不要忘记标记答案是正确的! :) – sethvargo