Well, after some hack & error I found that if I plug..

ENV['GEM_HOME'] = "/usr/lib/ruby/gems/1.8/"

... into "/usr/bin/mongrel_rails", then it works as expected.

But changing gem installed files can't possibly be a good idea.  Is
there a way to set this env var within monitrc?




On Apr 29, 10:35 am, Andy Koch <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Monit is not start/stop -ing my mongrels.  It's very distressing.
>
> my monit config...
>
> check process mongrel_8002 with pidfile /home/mongrel/apps/
> stringsDB_internal_versions/shared/pids/mongrel.8002.pid
> start program = "/usr/bin/mongrel_rails cluster::start -C /home/
> mongrel/apps/stringsDB_internal_versions/current/config/
> mongrel_cluster.yml --clean --only 8002"
> stop program = "/usr/bin/mongrel_rails cluster::stop -C /home/mongrel/
> apps/stringsDB_internal_versions/current/config/mongrel_cluster.yml --
> clean --only 8002"
>
> my monit log...
>
> [PDT Apr 29 10:31:39] info     : 'mongrel_8001' trying to restart
> [PDT Apr 29 10:31:39] info     : 'mongrel_8001' stop: /usr/bin/
> mongrel_rails
> [PDT Apr 29 10:32:43] error    : 'mongrel_8001' failed to stop
>
> but...
> I can run these cmds, as root, from shell and they work fine.  Thus I
> suspect this is a shell issue.  But the log is not giving me any
> actionable info.
>
> Any ideas?
>
> Help is greatly appreciated.
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to