about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-03 20:02:26 -0800
committerEric Wong <normalperson@yhbt.net>2009-03-03 20:02:26 -0800
commitb2f0f94ed6ebdd2eeba73c1df7b430d56eaf0703 (patch)
treeba63236a14c84b900810be0a7b26b3a724c6b7d7
parent0632255f337d6978624a52e3197a79988b31aab0 (diff)
downloadunicorn-b2f0f94ed6ebdd2eeba73c1df7b430d56eaf0703.tar.gz
The config file format changed from add_listener => listen.
-rw-r--r--lib/unicorn/configurator.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb
index a8bb41b..402204e 100644
--- a/lib/unicorn/configurator.rb
+++ b/lib/unicorn/configurator.rb
@@ -19,7 +19,11 @@ module Unicorn
           server.logger.info("worker=#{worker_nr} spawned pid=#{$$}")
 
           # per-process listener ports for debugging/admin:
-          # server.add_listener("127.0.0.1:#{8081 + worker_nr}")
+          # "rescue nil" statement is needed because USR2 will
+          # cause the master process to reexecute itself and the
+          # per-worker ports can be taken, necessitating another
+          # HUP after QUIT-ing the original master:
+          # server.listen("127.0.0.1:#{8081 + worker_nr}") rescue nil
         },
       :before_fork => lambda { |server, worker_nr|
           server.logger.info("worker=#{worker_nr} spawning...")