I''m currently working on 4 different RoR apps all using mongrel cluster and each with their own config file in /etc/mongrel_cluster. I would like the ability to stop|start|restart a single app. Anyone working on something like this? I''d be happy to code it up and contribute this if there''s a need. Basically I would like this: sudo /etc/init.d/mongrel_cluster restart myapp thanks, andy -- Andrew Stone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060725/ec3f3060/attachment.html
On 2006-07-25 21:02:23 -0400, Andrew Stone wrote:> Date: Tue, 25 Jul 2006 21:02:23 -0400 > From: Andrew Stone <stonelists at gmail.com> > Subject: [Mongrel] mongrel_cluster > To: mongrel-users at rubyforge.org > > I''m currently working on 4 different RoR apps all using mongrel cluster and > each with their own config file in /etc/mongrel_cluster. I would like the > ability to stop|start|restart a single app. Anyone working on something > like this? I''d be happy to code it up and contribute this if there''s a > need. > > Basically I would like this: > > sudo /etc/init.d/mongrel_cluster restart myappi am working on that. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
> > i am working on that. > >Fantastic, I glad I asked then. :) thanks, andy -- Andrew Stone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060725/fdc2fe05/attachment.html
> > Fantastic, I glad I asked then. :) > >meant: I''m glad I asked then...I really need to start reviewing my emails *before* I send them. :( -- Andrew Stone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060725/b1e7be32/attachment.html
> > > mongrel_rails cluster::restart -C /etc/mongrel_cluster/myapp.yml > > ? > > I do that on our dev server all the time... seems to work just fine... >Just pure laziness on my part. That''s sooo much to type. :) -- Andrew Stone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060725/2ecc2b54/attachment.html
> I''m currently working on 4 different RoR apps all using mongrel cluster and > each with their own config file in /etc/mongrel_cluster. I would like the > ability to stop|start|restart a single app. Anyone working on something > like this? I''d be happy to code it up and contribute this if there''s a > need. > > Basically I would like this: > > sudo /etc/init.d/mongrel_cluster restart myappWhy can''t you do this? mongrel_rails cluster::restart -C /etc/mongrel_cluster/myapp.yml ? I do that on our dev server all the time... seems to work just fine...
Hi Andrew: On Jul 25, 2006, at 9:37 PM, Andrew Stone wrote:> > mongrel_rails cluster::restart -C /etc/mongrel_cluster/myapp.yml > > Just pure laziness on my part. That''s sooo much to type. :) >Just use these bash functions and put them in your .bashrc: cluster_restart () { mongrel_rails cluster::restart -C /etc/ mongrel_cluster/$1.yml;} cluster_start () { mongrel_rails cluster::start -C /etc/ mongrel_cluster/$1.yml;} cluster_stop () { mongrel_rails cluster::stop -C /etc/mongrel_cluster/ $1.yml;} usage: $ cluster_start fluxura Thanks, Bradley Taylor ------ Rails Optimized Hosting ~ VPS and Dedicated Servers Simplified Deployment ~ Services and Software http://railsmachine.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060726/f3b763d0/attachment-0001.html