HttpRequest: update comment regarding short writes
[unicorn.git] / SIGNALS
blob40f9c3d8faf766d359f416baaf358232e5d1033f
1 == Signal handling
3 In general, signals need only be sent to the master process.  However,
4 the signals unicorn uses internally to communicate with the worker
5 processes are documented here as well.
7 === Master Process
9  * HUP - reload config file and gracefully restart all workers
11  * INT/TERM - quick shutdown, kills all workers immediately
13  * QUIT - graceful shutdown, waits for workers to finish their
14    current request before finishing.
16  * USR1 - reopen all logs owned by the master and all workers
17    See Unicorn::Util.reopen_logs for what is considered a log.
19  * USR2 - reexecute the running binary.  A separate QUIT
20    should be sent to the original process once the child is verified to
21    be up and running.
23 === Worker Processes
25 Sending signals directly to the worker processes should not normally be
26 needed.  If the master process is running, any exited worker will be
27 automatically respawned.
29  * INT/TERM - quick shutdown, immediately exit
31  * QUIT - gracefully exit after finishing the current request
33  * USR1 - reopen all logs owned by the worker process
34    See Unicorn::Util.reopen_logs for what is considered a log.