diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-03 20:02:26 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-03 20:02:26 -0800 |
commit | b2f0f94ed6ebdd2eeba73c1df7b430d56eaf0703 (patch) | |
tree | ba63236a14c84b900810be0a7b26b3a724c6b7d7 /lib/unicorn/configurator.rb | |
parent | 0632255f337d6978624a52e3197a79988b31aab0 (diff) | |
download | unicorn-b2f0f94ed6ebdd2eeba73c1df7b430d56eaf0703.tar.gz |
The config file format changed from add_listener => listen.
Diffstat (limited to 'lib/unicorn/configurator.rb')
-rw-r--r-- | lib/unicorn/configurator.rb | 6 |
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...") |