trinidad/trinidad_daemon_extension — Issue #4: daemonize fails when passing the pid_file, ubuntu 11.04 64-bit
Author: arohner
Created: 2011-12-01 23:08:21+00:00
State: open

I'm using jruby 1.6.5 (1.9 mode), trinidad 1.2.3, trinidad_daemon_extension 0.2.8

On my dev box, OSX 10.7, everything works fine.

On ubuntu 11.04, 64-bit,

jruby -S trinidad --config -e production --load daemon

works fine

However, any call that includes daemonize:

jruby -S trinidad --config -e production --load daemon --daemonize ./trinidad.pid

fails with

ubuntu@domU-12-31-39-0A-2C-73:~/Circle-1$ jruby -S trinidad --config -e production --load daemon --daemonize ./trinidad.pid
NativeException: java.lang.UnsatisfiedLinkError: Unable to load library 'c': /usr/lib/i386-linux-gnu/libc.so: invalid ELF header
start at /home/ubuntu/.rvm/gems/jruby-1.6.5@circle/gems/trinidad-1.2.3/lib/trinidad/server.rb:196
(root) at /home/ubuntu/.rvm/gems/jruby-1.6.5@circle/gems/trinidad-1.2.3/bin/trinidad:6
load at org/jruby/RubyKernel.java:1073
(root) at /home/ubuntu/.rvm/gems/jruby-1.6.5@circle/bin/trinidad:19

I tried absolute and relative paths, same result. Same result when including the daemon options in the config file.