-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated init.d script doesn't work for me #6
Comments
How did you install your JVM? What OS are you running? Also, does the user you are running the service as have permission to the /usr/lib/jvm/java-6-sun-1.6.0.26 directory? Can you run 'which java' and 'java -version'? thanks. |
Hi jkutner, I installed JVM using ubuntu packages. I'ts Ubuntu 10.04. $ uname -a I tried to run it with sudo and without sudo. That unprivileged user also have read acess to /usr/lib/jvm/java-6-sun-1.6.0.26 $ which java $ java -version BTW, init script generates such START_COMMAND: /home/box2/.rvm/gems/jruby-1.6.6.dev-head/gems/trinidad_init_services-1.1.0/trinidad-libs/jsvc_linux -home /usr/lib/jvm/java-6-sun-1.6.0.26/jre -wait 20 -pidfile /vol/apps/tsung_city/shared/pids/trinidad.pid -user root -procname jsvc- -jvm server -outfile /vol/apps/tsung_city/shared/logs/trinidad.log -errfile &1 -cp /home/box2/.rvm/gems/jruby-1.6.6.dev-head/gems/trinidad_init_services-1.1.0/trinidad-libs/jruby-jsvc.jar:/home/box2/.rvm/gems/jruby-1.6.6.dev-head/gems/trinidad_init_services-1.1.0/trinidad-libs/commons-daemon.jar:/home/box2/.rvm/rubies/jruby-1.6.6.dev-head/lib/jruby.jar -Djruby.memory.max=500m -Djruby.stack.max=1024k -Djna.boot.library.path=/home/box2/.rvm/rubies/jruby-1.6.6.dev-head/lib/native/linux-i386:/home/box2/.rvm/rubies/jruby-1.6.6.dev-head/lib/native/linux-amd64 -Djffi.boot.library.path=/home/box2/.rvm/rubies/jruby-1.6.6.dev-head/lib/native/i386-Linux:/home/box2/.rvm/rubies/jruby-1.6.6.dev-head/lib/native/s390x-Linux:/home/box2/.rvm/rubies/jruby-1.6.6.dev-head/lib/native/x86_64-Linux -Djruby.shell=/bin/sh -Djruby.home=/home/box2/.rvm/rubies/jruby-1.6.6.dev-head -Djruby.lib=/home/box2/.rvm/rubies/jruby-1.6.6.dev-head/lib -Djruby.script=jruby -Djruby.daemon.module.name=Trinidad -Djruby.compat.version=RUBY1_9 -Xmx500m -Xss1024k -Xbootclasspath/a:/home/box2/.rvm/rubies/jruby-1.6.6.dev-head/lib/jruby.jar com.msp.jsvc.JRubyDaemon /home/box2/.rvm/gems/jruby-1.6.6.dev-head/gems/trinidad_init_services-1.1.0/lib/trinidad_init_services.rb -d /vol/apps/tsung_city/current -t -e production Thanks, |
I'm not that familiar with the sun-java6 distribution. Can you try using the openjdk-6-jdk package? That is: sudo apt-get openjdk-6-jdk Which would give you a java_home of /usr/lib/jvm/java-6-openjdk/jre |
I'm seeing a similar problem on a CentOS 6.2 system using openjdk. [root@myhost ~]# uname -a [root@myhost ~]# rpm -qa | grep java [root@myhost ~]# which java [root@myhost ~]# java -version [root@myhost ~]# jruby -S gem list trinidad_init_services [root@myhost ~]# service trinidad restart [root@myhost ~]# cat /var/log/trinidad/trinidad.log |
sun-java6-jdk is just fine - I'm using it with the error is really weird, but since I have seen download the commons-daemon-1.0.8-native-src package and compile the binary |
@calavera could we have a wiki here for information such as self compiling/installing |
If it would help whoever is working on this issue, I have a CentOS VirtualBox VM that is having this problem that I could upload somewhere so the problem can be easily reproduced. |
@kares, yes, I've enabled the wiki, so we can add that information. It would be good to have it referenced on trinidad's wiki anyways. @mhuffnagle that would be perfect, any help is always really appreciated. |
@mhuffnagle so installing JSVC did not help https://github.com/trinidad/trinidad_init_services/wiki/Installing-JSVC ? |
confirming that self installing JSVC as I posted previously would solve this issue ! the bundled |
1.1.4 is out - we no longer bundle the linux binary instead we package JSVC's sources and try to compile the binary for you (unless installed) |
I wanted to try your trinidad_init_scripts, it generated pretty nice init.d script http://pastiebin.com/?page=p&id=4f0c613b84f7e , but it throws error:
sudo /etc/init.d/trinidad start
Starting daemon...
Cannot find any VM in Java Home /usr/lib/jvm/java-6-sun-1.6.0.26/jre
Unable to redirect to /vol/apps/tsung_city/shared/logs/trinidad.log
Cannot find any VM in Java Home /usr/lib/jvm/java-6-sun-1.6.0.26/jre
Cannot locate JVM library file
Service exit with a return value of 1
Daemon exited with status: 1. Check pidfile and log
Thought my Java really lives at /usr/lib/jvm/java-6-sun-1.6.0.26
Thanks,
Saulius
The text was updated successfully, but these errors were encountered: