Chris, What script are you using to start mongrel_cluster as a service? My guess is that the script in question runs as root, and then switches to the proper user prior to starting the mongrel cluster. Anytime a process becomes a user, the environment it runs in is considerably more "crippled" than usual. Things like .bashrc, for example, won't get sourced, so the environment ends up missing lots of important details. The environment that you see logged in as chris and the environment that the service sees when it is logged in as chris are two very different things.
A good start would be to look at the top of the init script that is getting executed for the service. Depending on whether it calls /bin/ bash or /bin/sh there are two different sets of files that you might need to edit to provide an appropriate environment. (This is assuming that your default shell is bash, and that sh is a symlink to bash.) Look in the "INVOCATION" section of the bash man page for more details. Hope that helps. -- Alex Malinovich Director of Deployment Services PLANET ARGON, LLC design // development // hosting http://www.planetargon.com http://www.the-love-shack.net [blog] +1 503 445 2457 +1 877 55 ARGON [toll free] +1 815 642 4068 [fax] On Oct 1, 5:02 am, gers32 <[EMAIL PROTECTED]> wrote: > Here's more : I started a mongrel_cluster by hand (the application > works fine) and compared it to the one started as a service. According > to "ps -ef", they're identical, EXCEPT for the PRIORITY level (5 by > hand, 0 as a service). Could this be causing my problem? > > Mongrel_Cluster started by hand: > ___________________________ > [EMAIL PROTECTED] log]$ ps -ef | grep mongrel > chris 4781 1 5 05:55 ? 00:00:02 /usr/local/bin/ruby / > usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c /home/ > chris/kitry/FDS_Server --user chris --group chris -p 4001 -P log/ > mongrel.4001.pid -l log/mongrel.4001.log > chris 4784 1 5 05:55 ? 00:00:02 /usr/local/bin/ruby / > usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c /home/ > chris/kitry/FDS_Server --user chris --group chris -p 4002 -P log/ > mongrel.4002.pid -l log/mongrel.4002.log > > Mongrel_Cluster started as a service: > _______________________________ > [EMAIL PROTECTED] ~]$ ps -ef | grep mongrel > chris 2759 1 0 06:04 ? 00:00:02 /usr/local/bin/ruby / > usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c /home/ > chris/kitry/FDS_Server --user chris --group chris -p 4001 -P log/ > mongrel.4001.pid -l log/mongrel.4001.log > chris 2762 1 0 06:04 ? 00:00:02 /usr/local/bin/ruby / > usr/local/bin/mongrel_rails start -d -e production -a 0.0.0.0 -c /home/ > chris/kitry/FDS_Server --user chris --group chris -p 4002 -P log/ > mongrel.4002.pid -l log/mongrel.4002.log --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---