2014-03-04 231 views
0

我的JBoss食譜有問題,服務在/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 

感謝和問候, 薩沙

回答

-1

OK,我知道了,這是某種競爭狀態在我的運行級別的腳本,我的食譜是完全正常的。