SOLVED The issue was the way I was running rsyslogd.
Running it as rsyslogd -n &
from init.sh
fixes the issue.
I am exploring an issue that I am having where a rsyslog
rotation.sizeLimitCommand
apparently may not produce any output at all, otherwise it fails.
On a host that has Docker installed, run the test via ./run.sh
; just wait a
few seconds for the file to reach 1kB in size. To see the problem, uncomment
the echo
line in logrotate.sh
and run the test again.
I can't yet tell from the source why this might be the case: