[ANN] new Trinidad's daemon library based on Apache Commons Daemon

Hi,

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.

Cheers

http://github.com/calavera/trinidad_daemon
https://rubygems.org/gems/trinidad_daemon

Would love to give it a shot (as you know), but I am currently using
Trinidad for sinatra. Any chance it would work for me?

Thanks!

Karl,

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.

Hi Jon,

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.

Btw, any contribution will be really appreciated.

Cheers

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 :slight_smile: 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:

Cheers

http://github.com/calavera/trinidad_daemon
trinidad_daemon | RubyGems.org | your community gem host
GitHub - nicobrevin/jruby-jsvc: Use jsvc to run a jruby app as an init.d style daemon


Nick G.
Developer @ Media Service Provider
+44 207 729 4797


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Mon, Sep 13, 2010 at 4:56 PM, Nick G. [email protected]
wrote:

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.

Actually that’s what this library is, just a init.d script generator
that
uses erb, and the daemon library that calls to Trinidad :slight_smile:

Btw, another nice to-do for jruby-jsvc will be a gem to install it with
the
required jars inside.

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