#262 patch to rename log files in order to work with logrotate

open
nobody
None
5
2007-04-07
2007-04-07
No

Mailman needs to have different log file names in order to work properly with logrotate. A proper Logrotate conf file for Mailman needs a postrotate command in order to restart Mailman after log files have been rotated. See FAQ 04.007 for more details (http://www.python.org/cgi-bin/faqw-mm.py?req=edit&file=faq04.007.htp)

Here is a patch against v2.1.9

-------------------------
+++ Logging/Logger.py 2007-04-06 21:11:18.600639072 -0400
--- Logging/Logger.py.old 2007-04-06 21:10:05.672725800 -0400
@@ -43,7 +43,6 @@
Otherwise, the file is created only when there are writes pending.
"""
self.__filename = os.path.join(mm_cfg.LOG_DIR, category)
+ self.__filename += '.log'
self.__fp = None
self.__nofail = nofail
self.__encoding = LOG_ENCODING or sys.getdefaultencoding()
-------------------------

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks