diff options
Diffstat (limited to 'SIGNALS')
-rw-r--r-- | SIGNALS | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -7,7 +7,7 @@ processes are documented here as well. === Master Process * HUP - reload config file and gracefully restart all workers - If preload_app is false (the default), the application code + If "preload_app" is false (the default), the application code will be reloaded when workers are restarted as well. * INT/TERM - quick shutdown, kills all workers immediately @@ -31,12 +31,19 @@ Sending signals directly to the worker processes should not normally be needed. If the master process is running, any exited worker will be automatically respawned. - * INT/TERM - quick shutdown, immediately exit + * INT/TERM - Quick shutdown, immediately exit. + Unless WINCH has been sent to the master (or the master is killed), + the master process will respawn a worker to replace this one. - * QUIT - gracefully exit after finishing the current request + * QUIT - Gracefully exit after finishing the current request. + Unless WINCH has been sent to the master (or the master is killed), + the master process will respawn a worker to replace this one. - * USR1 - reopen all logs owned by the worker process + * USR1 - Reopen all logs owned by the worker process. See Unicorn::Util.reopen_logs for what is considered a log. + Log files are not reopened until it is done processing + the current request, so multiple log lines for one request + (as done by Rails) will not be split across multiple logs. === Procedure to replace a running unicorn executable |