Am 25.02.21 um 13:30 schrieb Harald Dunkel:
On Mon, 22 Feb 2021 20:00:33 +0100 Michael Biebl <bi...@debian.org>
wrote:
Am 22.02.2021 um 18:57 schrieb Harald Dunkel:
Sorry to say, but this is not a fix. A fix would avoid the race condition, no matter whats written in the config files.
Your "fix" is just a workaround. If I add

If you have a better solution, I'm all ears.



My favorite workaround is to kick out the delaycompress, see https://bugs.debian.org/720096#130.

So I'm assuming that we still talk about a logrotate config with
separate sections for separate log files and multiple postrotate scripts.

So I *think* what's happening here is, that by removing "delaycompress",
you slow down logrotate sufficiently enough (since it now has to compress files), that the next SIGHUP is delayed just enough so it has finished processing a previous SIGHUP. That's just a guess though. You might test this by adding a sleep 10 in your postrotate script before calling rsyslog-rotate.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to