From f3235420ebd2def1cdcb7c5bbe036f157835420d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 12 May 2009 11:52:12 -0700 Subject: Reopen master logs on SIGHUP, too There may be other logs opened if preload_app is true besides stderr/stdout paths. So err on the safe side and reopen everything. --- lib/unicorn.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 08d1703..4a4e2e1 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -568,6 +568,7 @@ module Unicorn @config.reload @config.commit!(self) kill_each_worker(:QUIT) + Unicorn::Util.reopen_logs logger.info "done reloading config_file=#{@config.config_file}" rescue Object => e logger.error "error reloading config_file=#{@config.config_file}: " \ -- cgit v1.2.3-24-ge0c7