On 9/21/20 9:07 AM, Mark Dale wrote:
> ========================
>>> Today that log file has rotated ("post.1) and the new post log file was
>>> not being written to -- until I restarted the qrunner again. As said,
>>> no problems with mail delivery, and the other logs.
> ========================
>> What does your logrotate script contain?
>> Does it do
>> bin/mailmanctl reopen
>> after rotation?
> ========================
>
> Yes. It does "reopen" for "post".
>
> /var/log/mailman/subscribe /var/log/mailman/post {
> su root list
> daily
> missingok
> create 0664 list list
> rotate 3
> compress
> delaycompress
> sharedscripts
> postrotate
> [ -f '/var/run/mailman/mailman.pid' ] &&
> /usr/lib/mailman/bin/mailmanctl -q reopen || exit 0
> endscript
> }
After rotation, do the post log messages get written to the prior
(rotated) log or do they disappear?
Does /var/run/mailman/mailman.pid exist and contain the master watcher's
PID when Mailman is running?
FWIW, I don't try to check if mailman is running in my postrotate
script. I use
> postrotate
> /usr/local/mailman/bin/mailmanctl reopen >/dev/null 2>&1 || true
> endscript
--
Mark Sapiro <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/[email protected]/
https://mail.python.org/archives/list/[email protected]/