我通过厨师开始 jboss 服务
service "jboss" do
action :start
end
返回错误
localhost Mixlib::ShellOut::ShellCommandFailed
localhost ------------------------------------
localhost Expected process to exit with [0], but received '1'
localhost ---- Begin output of /sbin/service jboss start ----
localhost STDOUT: Starting JBoss AS 5.1.0
localhost STDERR:
localhost ---- End output of /sbin/service jboss start ----
localhost Ran /sbin/service jboss start returned 1
但是当我登录 vagrant ssh 时,jboss 服务成功运行,
我认为厨师失败是因为 Jboss 'Starting JBoss AS 5.1.0' 返回的字符串和服务资源在这里需要 0。
我错过了什么?如何成功运行它。