Hi all,
I've written a lwrp with, at the end of the provider a service start:
It works as expected, I'm testing it here:
when I log into the instance, as expected, I have a jetty and a play service running. The problem is that if I use the jetty resource first like this:
java_wrapper 'jetty' do
app_parameters ["org.mortbay.start.Main"]
classpath ["/usr/local/jetty/start.jar"]
java_parameters ["-Djetty.home=/usr/local/jetty"]
end
java_wrapper 'play' do
classpath ["#{helloworld_dir}/target/staged/*"]
app_parameters ["play.core.server.NettyServer", "#{helloworld_dir}"]
java_parameters ["-Dhttp.port=9001"]
end
then jetty service is started, but the play is not, the last logs shows:
- enable service service[play]
* service[play] action start[2013-11-04T11:44:41+00:00] INFO: Processing service[play] action start (/tmp/kitchen-chef-solo/cookbooks/java_wrapper/providers/default.rb line 65)
(up to date)
It stops here, when if it is started properly, there is one more line:
- start service service[play]
If I log in and run 'sudo /etc/init.d/play start', the service starts without problem. I have a very hard time finding why it behaves this way.
Alex