Am 05.05.2021 um 19:27 schrieb Vincent Lefevre:
On 2021-05-05 19:12:24 +0200, Michael Biebl wrote:
Am 05.05.2021 um 18:39 schrieb Vincent Lefevre:
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.

rsyslogd gives information when it has received a SIGHUP, e.g.

May 05 18:34:05 zira rsyslogd[1700043]: [origin software="rsyslogd" swVersion="8.2102.0" 
x-pid="1700043" x-info="https://www.rsyslog.com";] rsyslogd was HUPed


I'm not sure what you are trying to suggest here. Can you elaborate? Or even better send a patch?

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to