:: Re: [DNG] Log rotation keeps rotate…
Inizio della pagina
Delete this message
Reply to this message
Autore: Lehel Bernadt
Data:  
To: dng
Oggetto: 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".