Instead of stopping all ports and then starting them up again during `mongrel_rails cluster::restart`, this patch stops
each port, checks it (and does a force stop if necessary) and restarts it again before moving on to the next port.
This allows downstream proxies to fail over to other mongrels while each individual port is being restarted.
Patch based on code by Eric Kolve. I added `check_wait`. |