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 <[email protected]> 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 <[email protected]> wrote:
>> On Fri, Feb 12, 2016 at 8:25 PM, Eric Covener <[email protected]> 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
> [email protected]

Reply via email to