[Mongrel] problem restarting mongrel_cluster outside RAILS_ROOT - patch and other option

Zed A. Shaw zedshaw at zedshaw.com
Tue Apr 17 14:14:48 EDT 2007

On Tue, 17 Apr 2007 11:36:27 -0400
"Michael Steinfeld" <mikeisgreat at gmail.com> wrote:

It was discussed earlier, but have you tried kill -USR2?  It does the
proper restart where it waits for mongrel to stop internally and then
start again with the same command.  Here's how you'd change your script:

 desc "Make mongrel restart after deployment"
 task :after_after_deploy, :roles => :app do
     run "sudo killall -USR2 mongrel_rails"

Let me know if that works.  There *might* be an issue with the current
directory symlinking on restart.

Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book

More information about the Mongrel-users mailing list