Patching Mongrel Cluster Restart

The following is commonly used to restart a Rails application that uses mongrel and the mongrel_cluster gem:

mongrel_rails cluster::restart

This usually works fine, but if you have a very active application that’s getting hammered with requests, it’s not guaranteed that your mongrel instance will stop and start as you expect.  Let’s take a look at the restart method [...]