:: Re: [DNG] Log rotation keeps rotate…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Lehel Bernadt
Fecha:  
A: dng
Asunto: Re: [DNG] Log rotation keeps rotated file open
On Tue, May 21, 2024 at 05:15:52PM +0100, kc-devuan@??? wrote:
>21 May 2024 16:39:13 Dan Purgert via Dng <dng@???>:
>
>> Check the configuration, as I recall those should have a postrotate
>> script (/usr/lib/rsyslog/rsyslog-rotate) running to restart syslog.
>>
>> Config is /etc/logrotate.d/rsyslog here (pulled forward from Chimaera).
>
>The postrotate config and script are present with the script running
>invoke-rc.d rsyslog rotate > /dev/null
>
>I am running runit. restarting rsyslog seemed to fix it. If it happens again then I will take a closer look.


invoke-rc.d is not runit-aware. As a workaround, in /etc/logrotate.d/rsyslog replace
"/usr/lib/rsyslog/rsyslog-rotate" with "sv reload rsyslog > /dev/null".