httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: httpd should be able to reopen log files without a restart.
Date Tue, 11 Oct 2011 14:29:28 GMT
On Mon, Oct 10, 2011 at 9:16 PM, crocket <crockabiscuit@gmail.com> wrote:
> When some softwares(including stunnel) receive SIGUSR1, they reopen a
> log file without re-reading configuration files or restarting.
> Since httpd uses SIGUSR1 for graceful restart, it could use SIGUSR2
> purely for reopening log files.
>
> Why do people need this signal?
>
> A graceful restart doesn't kill active children processes, and those
> processes still write on an old log file.
> logrotate can be configured to compress old log files, in which case
> httpd would try to write onto a compressed log file.
> Since httpd can't log to a file, it would show abnormal behaviors or
> even abort downloads from httpd.

Does logrotate use the same inode for the compressed file? Either way,
why would httpd fail to write to the file and behave abnormally?

Mime
View raw message