Am 05.05.2021 um 18:39 schrieb Vincent Lefevre:
On 2021-05-05 15:46:17 +0200, Michael Biebl wrote:
Unfortunately this is not a good idea and we actually went the other way
just recently.
For some background see #720096

If there was a way to issue a single postrotate after all log files have
been processed, then we could split the rules up. But unfortunately ttbomk
logrotate doesn't provide such a facility.

This issue needs to be fixed anyway. If logrotate doesn't provide such
a facility, the fix could be done in rsyslog via a locking mechanism
to avoid the race (the /usr/lib/rsyslog/rsyslog-rotate script would
hold the lock until it knows that the SIGHUP has been processed).


Signals are asynchronous, I don't see how such a script could be implemented robustly.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to