Gaspard Bucher wrote:
> 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
i have updated my monitrc file :
-------
set daemon 60
set httpd port 2812 and
use address 127.0.0.1
allow 127.0.0.1
check process mongrel-3003 with pidfile
/home/seb/railsproject/cpericard/log/mongrel.3003.pid
start program = "/usr/bin/mongrel_rails start -d -e development -p
3003 -a 127.0.0.1 -P
/home/seb/railsproject/cpericard/log/mongrel.3003.pid -c
/home/seb/railsproject/cpericard"
stop program = "/usr/bin/mongrel_rails stop -P
/home/seb/railsproject/cpericard/log/mongrel.3003.pid -c
/home/seb/railspoject/cpericard"
group mongrel
-------
when i try to start monit :
[EMAIL PROTECTED] cpericard]# /usr/local/bin/monit start all
'mongrel-3003' start: /usr/bin/mongrel_rails
'mongrel-3003' failed to start
monit daemon is not starting but mongrel is working !
--
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
-~----------~----~----~----~------~----~------~--~---