On 6/30/20 2:10 PM, Andrew Hodgson wrote:
Hi,
Does anyone have any usable Logrotate files for Mailman3 (especially for the web stuff)?
Here are two. They differ in the name and location of the Django log. Both of them signal gunicorn to reopen its logs. If you are using uWSGI or some other WSGI support, you'll need to figure that out.
In this one, all the logs including Django's are in /opt/mailman/mm/var/logs/
/opt/mailman/mm/var/logs/*.log { missingok sharedscripts su mailman mailman postrotate /opt/mailman/mm/bin/mailman reopen &>/dev/null || true if [ -r /opt/mailman/mm/var/gunicorn.pid ]; then PID=
cat /opt/mailman/mm/var/gunicorn.pid
kill -s USR1 $PID fi endscript }
This one is actually two because the Django log is in /var/log/ rather than /opt/mailman/mm/var/logs/.
/opt/mailman/mm/var/logs/*.log { missingok sharedscripts su mailman mailman postrotate /opt/mailman/mm/bin/mailman reopen &>/dev/null || true if [ -r /opt/mailman/mm/var/gunicorn.pid ]; then PID=
cat /opt/mailman/mm/var/gunicorn.pid
kill -s USR1 $PID fi endscript }
} /var/log/mailman-web/*.log { missingok notifempty delaycompress su mailman mailman }
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan