Anyone have a a good monit config section for backgroundrb?
I’m thinking something like this:
check process backgroundrb with pidfile
/var/www/apps/foo/current/log/backgroundrb.pid
start program = “/var/www/apps/foo/current/script/backgroundrb start”
stop program = “/var/www/apps/foo/current/script/backgroundrb stop”
if failed host 127.0.0.1 port 2000 then restart
if 5 restarts within 5 cycles then timeout
Problem is the port test fails - I thought 2000 is the default…
Thanks,
–
Zack C.
http://depixelate.com