Hi,

I've a few problems with my rails app at the minute, causing mongrels
in a cluster to die, while I debug I've setup monit to keep the site
running.

Problem is, whenever monit starts one of my mongrels via mongrel_rails
cluster::start --only 8000 --clean -C /url/to/yml/file I get the
following in my log/mongrel.log:

** Mongrel available at 127.0.0.1:8000
** Writing PID file to log/mongrel.8000.pid
Define INLINEDIR or HOME in your environment and try again

I also had to make changes to mongrel_cluster 0.2.2's init.rb to give
it the full path to mongrel_rails, otherwise it failed to find it.

If I run the same command line myself, the pup comes up fine.

Anyone got a working example with the new mongrel_cluster functionality?

monitrc:

check process mongrel-8000 with pidfile /path/to/mongrel.8000.pid
        start program = "/usr/local/bin/ruby
/usr/local/bin/mongrel_rails cluster::start --only 8000 --clean -C
/www/path/to/config/mongrel_cluster.yml"

Thanks in advance,
Paul
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to