the last couple of weeks some Trinidad’s users have reported weird
issues
related with the process that the library uses to fork the server.
Yesterday
I was working in a new library that uses Apache Commons Daemon and the
recently released JRuby-jsvc to do that process and it should be a
replacement for the current daemon_extension eventually.
This new library generates an init.d script for your environment and
it’s
easier to modify and maintain.
The library is still in development but I already released an early
version
that works fine for rails applications. If you are using the
trinidad_daemon_extension gem it’s worth giving a try. If you think it
can
be improved just let me know your ideas and I’ll be more that happy to
give
you commit privileges in the repository.
it should work but I didn’t test it yet. The init.d script has a
variable
called TRINIDAD_OPTS where you can specify the rackup file path and the
other options that your application needs.
actually I don’t know if anybody is using Trinidad on Windows servers
but if
somebody needs it I can try to support it.
I don’t know anything about the ACD development process, the latest
release
is from two years ago so I suppose it’s pretty stable and they don’t
have
any release planed in a near future, but as you say it’s not an issue
for
Trinidad directly, it’s more an issue for JRuby-jsvc on Windows.
Great, I’ll take a look when I have a moment. It would be nice to
integrate an init.d script generator or some such in to jruby-jsvc.
As for windows support, acd sort of supports it with procrun (although
it doesn’t seem to use exactly the same interface - not a biggie).
Procrun/win32 support is not going to be top of my list for jruby-jsvc,
because I don’t have a windows dev box to hand, plus I have no desire to
spend my free time wallowing in the murky depths of win32 It should
just be a matter of creating some wrapper scripts for procrun that
installs the service with the correct parameters for jruby-jsvc.
Cheers,
Nick
On Mon, 2010-09-13 at 10:34 +0200, David C. wrote:
the last couple of weeks some Trinidad’s users have reported weird issues
related with the process that the library uses to fork the server. Yesterday
I was working in a new library that uses Apache Commons Daemon and the
recently released JRuby-jsvc to do that process and it should be a
replacement for the current daemon_extension eventually.
What are you currently thinking for Windows testing and support for your
new library using ACD?
What help, if any, would you like from JRuby Windows users?
FWIW, I very briefly looked at ACD the other day and, although the
project provides MSVCRT linked executables for download, the Makefile’s
and build process for those exe’s appear to be tied to the VC6 toolchain
so one can link against MSVCRT to avoid mixed library issues. If you
don’t already have the old VC6, I’m not sure where you’d get a copy if
you want/need to build from source.
While ACD really needs to create a Makefile usable by MSYS/MinGW
toolchains, I suspect it’s not an issue for Trinidad-on-Windows users as
long as ACD continues to provide the binary executables.
Jon
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.