1. Home
  2. CGI & Passenger
  3. Restarting Passenger processes
  1. Home
  2. Python
  3. Restarting Passenger processes
  1. Home
  2. Ruby
  3. Restarting Passenger processes

Restarting Passenger processes



An application launched by Passenger may be restarted by creating a file in tmp/ (NB: not /tmp) within the application root directory, usually one level down from public/. Create a file under tmp/ named restart.txt to restart the application once. A restart will happen within 2 minutes.

To restart an application on every request, very useful for in-place debugging, create a file named always_restart.txt.

Note: do not leave always_restart.txt file for an application in production. This results in very poor performance.

Updated on July 8, 2019

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help! If you get an error, visit https://lithiumhosting.com/support instead.
Contact Support