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). -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)