about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-14 17:22:15 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-14 17:22:15 -0700
commit966d55b875f714c9debe08a9b9d265204da2a845 (patch)
tree8fddb0822d7151dc335e7497c99165eadd375c73 /lib
parent8cd8de4637b5731b4d3ade587307d7241ce99eff (diff)
downloadunicorn-966d55b875f714c9debe08a9b9d265204da2a845.tar.gz
We don't (and won't ever) do log rotation within the process.
That's the job of logrotate and tools like that.  We just
reopen logs like other reasonable daemons out there.
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 17159bf..3f15883 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -193,9 +193,9 @@ module Unicorn
             stop(false)
             break
           when :USR1 # rotate logs
-            logger.info "master rotating logs..."
+            logger.info "master reopening logs..."
             Unicorn::Util.reopen_logs
-            logger.info "master done rotating logs"
+            logger.info "master done reopening logs"
             kill_each_worker(:USR1)
           when :USR2 # exec binary, stay alive in case something went wrong
             reexec
@@ -467,9 +467,9 @@ module Unicorn
       while alive && @master_pid == Process.ppid
         if reopen_logs
           reopen_logs = false
-          @logger.info "worker=#{worker.nr} rotating logs..."
+          @logger.info "worker=#{worker.nr} reopening logs..."
           Unicorn::Util.reopen_logs
-          @logger.info "worker=#{worker.nr} done rotating logs"
+          @logger.info "worker=#{worker.nr} done reopening logs"
           wr.close rescue nil
           rd, wr = IO.pipe
           rd.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)