Reload the configuration

The HUP signal can be used to reload the Gunicorn configuration on the fly.

  1. 2013-06-29 06:26:55 [20682] [INFO] Handling signal: hup
  2. 2013-06-29 06:26:55 [20682] [INFO] Hang up: Master
  3. 2013-06-29 06:26:55 [20703] [INFO] Booting worker with pid: 20703
  4. 2013-06-29 06:26:55 [20702] [INFO] Booting worker with pid: 20702
  5. 2013-06-29 06:26:55 [20688] [INFO] Worker exiting (pid: 20688)
  6. 2013-06-29 06:26:55 [20687] [INFO] Worker exiting (pid: 20687)
  7. 2013-06-29 06:26:55 [20689] [INFO] Worker exiting (pid: 20689)
  8. 2013-06-29 06:26:55 [20704] [INFO] Booting worker with pid: 20704

Sending a HUP signal will reload the configuration, start the new worker processes with a new configuration and gracefully shutdown older workers. If the application is not preloaded (using the preload_app option), Gunicorn will also load the new version of it.