Chef Cookbook: service is not starting

I have a problem with my JBoss-cookbook, the service is created correctly in /etc/init.d and can be started/stopped/restarted by using service start/stop/restart jboss, but it is not started after Chef finished deploying my infrastructure.

This is the part of my cookbook that creates the service.

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

Thanks and Regards, Sascha


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

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

上一篇: 厨师食谱在服务资源上失败

下一篇: 厨师食谱:服务不开始