From f2f6f56a988e1906edf5575ff7e2c5d0e7db1835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Fri, 6 Dec 2013 16:51:05 +0000 Subject: [PATCH] Autodetect when logs should be reopen --- roles/mailman/files/hyperkitty.logrotate.conf | 4 ---- roles/mailman/templates/settings.py.j2 | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/roles/mailman/files/hyperkitty.logrotate.conf b/roles/mailman/files/hyperkitty.logrotate.conf index 3e5b70f0ae..05c9113988 100644 --- a/roles/mailman/files/hyperkitty.logrotate.conf +++ b/roles/mailman/files/hyperkitty.logrotate.conf @@ -1,10 +1,6 @@ /var/log/hyperkitty/*.log { missingok notifempty - sharedscripts delaycompress su root apache - postrotate - /sbin/service httpd reload > /dev/null 2>/dev/null || true - endscript } diff --git a/roles/mailman/templates/settings.py.j2 b/roles/mailman/templates/settings.py.j2 index fa3b4ffe58..5c29bd2d69 100644 --- a/roles/mailman/templates/settings.py.j2 +++ b/roles/mailman/templates/settings.py.j2 @@ -262,7 +262,7 @@ LOGGING = { 'file':{ 'level': 'INFO', #'class': 'logging.handlers.RotatingFileHandler', - 'class': 'logging.FileHandler', + 'class': 'logging.handlers.WatchedFileHandler', 'filename': '/var/log/hyperkitty/hyperkitty.log', 'formatter': 'verbose', },