Sha256: 8ac749ccaf51c7bd807f5eaca8b8ce937be4a1803cb1e46afd0f6909b59e920c

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

== Signal handling

In general, signals need only be sent to the master process.  However,
the signals unicorn uses internally to communicate with the worker
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
   will be reloaded when workers are restarted as well.

 * INT/TERM - quick shutdown, kills all workers immediately

 * QUIT - graceful shutdown, waits for workers to finish their
   current request before finishing.

 * USR1 - reopen all logs owned by the master and all workers
   See Unicorn::Util.reopen_logs for what is considered a log.

 * USR2 - reexecute the running binary.  A separate QUIT
   should be sent to the original process once the child is verified to
   be up and running.

=== Worker Processes

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

 * QUIT - gracefully exit after finishing the current request

 * USR1 - reopen all logs owned by the worker process
   See Unicorn::Util.reopen_logs for what is considered a log.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unicorn-0.2.1 SIGNALS