[Rails] Re: monit newbie problem

2008-10-07 Thread Frioffol Friofool
Daniel Bush wrote: Frioffol Friofool wrote: 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 : Hi, What do you get when you run: # /usr/local/bin/monit -t -c /usr/local/src/monitrc Daniel [EMAIL

[Rails] Re: monit newbie problem

2008-10-07 Thread Freddy Andersen
Monit does NOT get the normal path information that a regular user on the server would get so you have to be VERY specific in you configuration files. Some times the best solution is to create a startup script that you call from monit... script: #!/bin/bash # Get the port number PORT=$2 # Set

[Rails] Re: monit newbie problem

2008-10-07 Thread Frioffol Friofool
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

[Rails] Re: monit newbie problem

2008-10-07 Thread Daniel Bush
Frioffol Friofool wrote: 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 : Hi, What do you get when you run: # /usr/local/bin/monit -t -c /usr/local/src/monitrc Daniel -- Posted via http://www.ruby-forum.com/.

[Rails] Re: monit newbie problem

2008-10-07 Thread Gaspard Bucher
You misunderstood me. Try running your command * in the shell * to test it first. You also get any error messages. So you should type: # env -i /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 /

[Rails] Re: monit newbie problem

2008-10-07 Thread Gaspard Bucher
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

[Rails] Re: monit newbie problem

2008-10-07 Thread Frioffol Friofool
Gaspard Bucher wrote: You misunderstood me. Try running your command * in the shell * to test it first. You also get any error messages. So you should type: # env -i /usr/bin/mongrel_rails start -d -e development -p 3003 -a 127.0.0.1 -P /home/seb/railsproject/cpericard/log/mongrel.3003.pid

[Rails] Re: monit newbie problem

2008-10-07 Thread Frioffol Friofool
Frioffol Friofool wrote: Gaspard Bucher wrote: You misunderstood me. Try running your command * in the shell * to test it first. You also get any error messages. So you should type: # env -i /usr/bin/mongrel_rails start -d -e development -p 3003 -a 127.0.0.1 -P