title: Passenger Hanging after Restart - Shared Hosting Environment
body: <p>Last night I made a revision to [app-root]/config/initializers/refinery/core.rb and the touched [app-name]/tmp/restart.txt. Then I tried to reload the app to find it totally hanging. The other two RoR apps I'm running on the same server were also hanging. Per curl -v there was no response at all from the server.  </p>
  
  <p>Everything was working fine before I touched the restart.txt file. The following morning, seven or eight hours later, the sites are working again and my minor edit (the site name) is showing up.</p>
  
  <p>Rails 3.2.16 on a hostmonster linux server. </p>
  
  <p>The instance of Passenger is not running under my user so I wonder if my hang horned any other user's RoR sites?</p>
  
  <p>I can't restart apache (of course) since this is a shared server. Any suggestions for how to deal with this if it happens again? I have no budget for Heroku or a VPS.</p>
  
  <p>UPDATE: Did the same steps again this morning, revised the core.rb and asked for a restart by touching restart.txt and it restarted in less than a minute. The question remains valid I think - what can a person do to address a hanging Passenger or prevent it from happening?</p>