From 539ca9a0efc692edde5448d3e4007d35372e033d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 3 Apr 2009 00:09:16 -0700 Subject: Documentation updates Reword and expand a bit --- SIGNALS | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'SIGNALS') diff --git a/SIGNALS b/SIGNALS index 671e8a5..fc0fa31 100644 --- a/SIGNALS +++ b/SIGNALS @@ -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 -- cgit v1.2.3-24-ge0c7