diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-18 01:59:17 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-18 14:30:46 -0700 |
commit | 29c6af908c2bd1109be175c34b89c45c8cc2f60b (patch) | |
tree | 076b9cf2a415504001f2aa63af1cc74bfd02052e /SIGNALS | |
parent | 2373b663049df69a168f1e876e817a49d8ed8a7b (diff) | |
download | unicorn-29c6af908c2bd1109be175c34b89c45c8cc2f60b.tar.gz |
In nearly every app, if the current working directory disappears, the app becomes broken, sometimes subtly. It can be especially broken when preload_app is false (the default). So just shut ourselves down to spare ourselves the wasted CPU cycles on a dead app. As a (hopefully) pleasant side effect, this allows configurations with preload_app==false (the default) to do application code reloads via SIGHUP (in addition to unicorn config reloads).
Diffstat (limited to 'SIGNALS')
-rw-r--r-- | SIGNALS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7,6 +7,8 @@ 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 |