厨师食谱:服务不开始

我的JBoss-cookbook有问题,服务在/etc/init.d中正确创建,可以使用服务启动/停止/重新启动jboss来启动/停止/重新启动,但Chef完成部署后不会启动基础设施。

这是我的食谱创建服务的一部分。

template "jboss" do
  path "/etc/init.d/jboss"
  source "init_deb.erb"
  owner "root"
  group "root"
  mode "0755"
end

service "jboss" do
  supports :restart => true, :start => true, :stop => true
  action [ :enable, :start ]
end

execute 'wait for JBoss' do
  command 'sleep 5'
  action :nothing
end

感谢和问候,Sascha


好吧,我明白了,这是我运行级脚本中的某种竞争条件,我的Cookbook非常好。

链接地址: http://www.djcxy.com/p/78309.html

上一篇: Chef Cookbook: service is not starting

下一篇: ctl reconfigure fails after customizing the PostgreSQL port