I needed an easy way for a client to install a ruby web app as a Windows service. I went with trinidad and trinidad_init_service and with some effort it is working. I had to go the extra mile with trinidad_init_service and write a script to configure many of the options that are not handled in the configuration prompts. The script builds the trinidad_init_defaults.yml, runs the trinidad_init_service command, and then runs a bunch of prunsrv commands to truly finish the install (--Jvm, --LogPath, --Classpath) so it runs, and runs properly.
It works, but I needed to extend the classpath to include a jar, and that got ugly. The only way I could do this succesfully was to use '--Classpath' argument to include all of the jars it was using in trinidad_init_services-1.2.1\trinidad-libs\, the jruby jar, and then my jar. I tried instead to use --java_lib ./lib in the trinidad args, but that did not work when running as a service. Is there a better way to specify an additional jar? Or for that matter, any of this (my prunsrv commands)?
Thanks,
Ken