|Summary:||logrotate scripts don't tell mailman to reopen its log files|
|Product:||[Retired] Red Hat Raw Hide||Reporter:||James Henstridge <james>|
|Component:||mailman||Assignee:||John Dennis <jdennis>|
|Status:||CLOSED RAWHIDE||QA Contact:|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2003-04-23 18:53:58 UTC||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
|Cloudforms Team:||---||Target Upstream Version:|
Description James Henstridge 2003-04-03 07:28:27 UTC
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.
Comment 1 James Henstridge 2003-04-04 07:40:17 UTC
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).
Comment 2 James Henstridge 2003-04-04 07:42:15 UTC
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.
Comment 3 John Dennis 2003-04-23 18:47:04 UTC
Thank you. I'm integrating your fixes now into the next rpm.