Closed boxofrad closed 12 years ago
I have reviewed your jsvc
command and seems the same as mine, except for -user
switch which I had issues with and I do not use at all (I rather do a sudo and run under a non-root user).
there's smt weird as -errfile &1
works for me as well (I am on Debian).
Thanks for having a look @kares
For now an interim solution is to use the YAML config file (which gets loaded by default).
I'm also having an issue with the -user flag, but only root can bind to port 80. So i'm actually running tomcat on 8080 and proxying with nginx..
Which is probably a better idea for production anyway! :)
so replacing /var/webapps/config/trinidad.rb
with an equivalent /var/webapps/config/trinidad.yml
worked ?
or did you change something else as well ... just so we know where to proceed with this issue.
The jsvc
that's packaged with the gem doesn't seem to work on Ubuntu 10.4 -- that's why I added the jsvc path as an option in the init services config YAML. Installing it yourself if probably the best thing to do, since it would be hard to cover every platform.
Yep, replacing it with the equivalent YAML file fixed it..
@jkutner
Okay thats cool.. Maybe we should update the README or add a wiki page about it. Or even prompt the user about it on installation?
What do you think is best?
Yea, I think jsvc should be one of the option that you are prompted for. I'l definately update the README, too. Thx
Great! thanks for your help :)
I'm able to reproduce this -- but not on purpose unfortunately. @kares fix seems to work though. Can we get a 1.1.3 release soon?
Hi, our production server is running on Ubuntu 10.04. We've got trinidad working great when invoked manually like so:
Installation of the init_services went find as did generation of the init.d file.
However when I went to run
sudo /etc/init.d/trinidad start
I received the following error:Naturally i checked the file existed and had appropriate permissions and all seemed fine.
A kind of fix for that was to manually install jsvc and point the init script at
/usr/bin/jsvc
.Now the service tries to starts up but upon inspection of the log file I see the following errors:
This leads me to believe that it is not reading my configuration file as I have specified log level and min/max runtimes like so:
So my next logical step was to specify the config file in the init file on line 24 like so:
Again no dice!
So as a last resort I edited the init script to print the
$START_COMMAND
and it outputs the following:I dropped that into a terminal and it returns:
On inspection of this i figured it was an issue with the
-errfile
option and how your using the&1
option to send it tostdout
. So i tried wrapping this in quotes like so:'&1'
and the command itself exits successfully.But upon inspection of the log file I still see the same error:
Where is it going wrong?
Thankyou in advance