httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: rotatelogs and SIGTERM?
Date Fri, 12 Feb 2016 21:46:25 GMT
IIRC, solaris is doing things like that.
But here the shell would ignore SIGTERM (the trap may even be
superfluous since shells usually ignore it implicitly), so it
shouldn't be stopped by the signal and hence the message shouldn't
show up...

On Fri, Feb 12, 2016 at 10:40 PM, Eric Covener <covener@gmail.com> wrote:
> I lost a sentence somewhere. On one platform I use, the default for
> SIGTERM writes a message to stderr.
>
> On Fri, Feb 12, 2016 at 4:37 PM, Yann Ylavic <ylavic.dev@gmail.com> wrote:
>> On Fri, Feb 12, 2016 at 8:25 PM, Eric Covener <covener@gmail.com> wrote:
>>> Recall that 2.2 ran piped loggers under a shell until somewhat late in
>>> life, and 2.4 runs them directly [by default].
>>>
>>> rotatelogs currently doesn't do anything to block sigterm.  The
>>> default ahndler for sigterm writes a short message to stderr, which is
>>> the only reason I noticed.
>>
>> Maybe you could wrap rotatelogs in a script like:
>>
>> #!/bin/sh
>> trap '' TERM
>> /path/to/real/rotatelogs $@
>>
>> and then use:
>> ErrorLog |$/path/to/my/rotatelogs.sh ...
>>
>> in httpd.conf?
>
>
>
> --
> Eric Covener
> covener@gmail.com

Mime
View raw message