【问题标题】:Chef Cookbook: service is not starting厨师食谱:服务未启动
【发布时间】:2014-03-04 16:18:37
【问题描述】:

我的 JBoss-cookbook 有问题,该服务在 /etc/init.d 中正确创建,可以使用 service start/stop/restart 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

感谢和问候, 萨沙

【问题讨论】:

    标签: service jboss chef-infra cookbook


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多