From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-AU; rv:1.3) Gecko/20030312 Description of problem: In mailman 2.1 the qrunner is now a daemon (rather than being called periodically from cron), and it will hold its log files open while running. With the current logrotate scripts, qrunner will continue to append log entries to the same log file even after it has been rotated. In order to fix this, the logrotate scripts need to call "mailmanctl reopen" after the log rotation. Version-Release number of selected component (if applicable): 2.1-8 How reproducible: Always Steps to Reproduce: 1.start the "mailman service" 2.wait for the logs to rotate Actual Results: Log messages from qrunner continue to be appended to the old log file Expected Results: Log messages from qrunner should be appended to the new log file.
Created attachment 90894 [details] updated logrotate script The above replacement logrotate script should do a better job of rotating the logs. It will call "mailmanctl reopen" after performing the rotation. It also adds "smtp" and "qrunner" to the list of logs to rotate (those two logs were not getting rotated on my setup).
One small addition to the script. The postrotate script should probably run the following: /var/mailman/bin/mailmanctl reopen >/dev/null 2>&1 || true mailmanctl prints a status message after running.
Thank you. I'm integrating your fixes now into the next rpm.