I'm not sure you need to include the '/usr/bin/ruby' in your start
program. The following setup works for me:
check process mongrel-8007 with pidfile /var/zena/current/log/mongrel.
8007.pid
start program = "/var/lib/gems/1.8/bin/mongrel_rails start -d -e
production -p 8007 -a 127.0.0.1 -P log/mongrel.8007.pid -c /var/zena/
current" --user www-data --group www-data
stop program = "/var/lib/gems/1.8/bin/mongrel_rails stop -P log/
mongrel.8007.pid -c /var/zena/current"
Gaspard
>
> Hi,
>
> I tried to make monit up on my server to manage ruby on rails
> application.
> I have some problem when i try to start monit :
>
> [EMAIL PROTECTED] seb]# /usr/local/bin/monit start all
> 'mongrel_rails_3003' start: /usr/bin/ruby
> 'mongrel_rails_3003' failed to start
>
> [EMAIL PROTECTED] seb]# monit status
> monit: no status available -- the monit daemon is not running
>
> my monitrc file is in /usr/local/src/monitrc :
>
> ---------
> set daemon 30
> set logfile /var/log/monit.log
> set mailserver 127.0.0.1
> set mail-format {from:[EMAIL PROTECTED]
> set alert [EMAIL PROTECTED] only on {timeout, nonexist}
> set httpd port 4000
> include /home/seb/watchdog/*
> ---------
>
> my application config file in /home/seb/watchdog/ :
>
> ---------
> check process mongrel_rails_3003
> with pidfile /var/run/mongrel/mongrel.3003.pid
> start program = "/usr/bin/ruby /usr/bin/mongrel_rails
> cluster::start -C
> /home/seb/railsproject/cpericard/config/mongrel_cluster.yml --clean
> --only 3003"
> stop program = "/usr/bin/ruby /usr/bin/mongrel_rails
> cluster::stop -C
> /home/seb/railsproject/cpericard/config/mongrel_cluster.yml --only
> 3003"
> if totalmem > 100.0 MB for 5 cycles then restart
> if failed host 127.0.0.1 port 3003 protocol http with timeout 10
> seconds
> then restart
> ---------
>
> The mongrel process start but monit daemon is not running.
>
> What's wrong with my configuration ?
>
> Thanks a lot for your help !
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---