about summary refs log tree commit homepage
path: root/lib/unicorn.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r--lib/unicorn.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 9d40287..44d1b6d 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -179,8 +179,10 @@ module Unicorn
             stop(false)
             break
           when 'USR1' # rotate logs
-            kill_each_worker('USR1')
+            logger.info "master rotating logs..."
             Unicorn::Util.reopen_logs
+            logger.info "master done rotating logs"
+            kill_each_worker('USR1')
           when 'USR2' # exec binary, stay alive in case something went wrong
             reexec
           when 'WINCH'