[Mongrel] Mongrel_rails restart and sudo

Zed Shaw zedshaw at zedshaw.com
Fri Jun 16 17:40:00 EDT 2006


On Fri, 2006-06-16 at 16:20 -0500, Tom Brice wrote:
> On 6/16/06 11:20 AM, Neil Wilson  wrote:
> 
> > To do what you want do this
> > 
> > sudo <<-CMD
> >   sh -c "cd #{current_path} && mongrel_rails start"
> > CMD
> 
> Thanks.  This still has the same problem with sudo not applying to the
> mongrel_rails start command that mongrel_rails restart sends after sending
> the USR2 signal.
> 
> I'm having other difficulties with Apache and file uploads.  I'm gonna try
> mongrel_cluster to see how that works.
> 
> Thanks to everyone for the suggestions.  At least I learned something!

Tom, mongrel_cluster is the way to go for deployments with capistrano.
If you can post the stack dump you get in your mongrel.log after you do
this restart then I can probably see why it's failing.


-- 
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/




More information about the Mongrel-users mailing list