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 Chandler http://depixelate.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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On May 1, 2007, at 2:03 PM, Zack Chandler wrote:> > 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 Chandler > http://depixelate.comZack- It depends on what version fo the plugin you are using. The 0.2.x branch uses 2000 by default *but* it also uses unix domain sockets by default. So it really is not listening on any port, its using socket files to do its communicating. I havent gotten monit port checking to work with bdrb so I just monito it for memory and cpu and uptime. Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez-NLltGlunAUd/unjJdyJNww@public.gmane.org -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273) --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> > 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 Chandler > > http://depixelate.com > > Zack- > > It depends on what version fo the plugin you are using. The 0.2.x > branch uses 2000 by default *but* it also uses unix domain sockets by > default. So it really is not listening on any port, its using socket > files to do its communicating. I havent gotten monit port checking to > work with bdrb so I just monito it for memory and cpu and uptime. > > Cheers- > -- Ezra ZygmuntowiczEzra, Thanks - I had read about 0.2.x using domain sockets but had promptly forgot when updating my monit config. Thanks, -- Zack Chandler http://depixelate.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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---