Eric Wong <normalper...@yhbt.net> wrote:
> Michael Guterl <mgut...@gmail.com> wrote:
> > I don't mean to hijack my own thread, but the problem seems to be
> > closely related.  My application code is not being reloaded, when I
> > send HUP to the unicorn master process.
> 
> Hi Michael,
> 
> Application code is only reloaded by HUP when your preload_app setting
> is false.  Otherwise you have to use USR2 + QUIT to upgrade your entire
> process.
> 
> This behavior is documented in the Configurator, but not in the SIGNALS
> documented, I'll fix the SIGNALS document in a few and disable
> expand_path in the launcher scripts.

Just pushed the following change out for the SIGNALS doc.
 http://unicorn.bogomips.org/SIGNALS.html

diff --git a/SIGNALS b/SIGNALS
index 5c7295e..be96892 100644
--- a/SIGNALS
+++ b/SIGNALS
@@ -9,7 +9,12 @@ Unicorn and nginx.
 
 === Master Process
 
-* HUP - reload config file, app, and gracefully restart all workers
+* HUP - reloads config file and gracefully restart all workers.
+  If the "preload_app" directive is false (the default), then workers
+  will also pick up any application code changes when restarted.  If
+  "preload_app" is true, then application code changes will have no
+  effect; USR2 + QUIT (see below) must be used to load newer code in
+  this case.
 
 * INT/TERM - quick shutdown, kills all workers immediately
 
-- 
Eric Wong
_______________________________________________
mongrel-unicorn mailing list
mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn

Reply via email to