From 966d55b875f714c9debe08a9b9d265204da2a845 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 14 Apr 2009 17:22:15 -0700 Subject: s/rotating/reopening/g in log messages 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. --- lib/unicorn.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3-24-ge0c7