With Unicorn, you can reload and reload the Rails application with kill -USR2 [master process] , which does not immediately kill the process, but starts a new main process + subordinate processes in the background. When the new master is ready, you can disable the old master with kill -QUIT . This allows you to restart your website if visitors have not noticed a slowdown in request processing.
But with Passenger, you restart the Rails application with touch tmp/restart.txt , which, as far as I can tell, causes the Rails application to stop responding for several seconds to restart the Rails application.
Is there a way to use Passenger, but is it also easy to restart the Rails application?
source share