[Bug 244233] Re: Logrotate is noisy with: Re-opening all log files

Imre Gergely gimre at narancs.net
Wed Dec 15 14:37:24 GMT 2010


Did the test case and everythings seems ok.

root at utest-hhs32:~# apt-cache policy mailman
mailman:
  Installed: 1:2.1.9-9ubuntu1.2
  Candidate: 1:2.1.9-9ubuntu1.2
  Version table:
 *** 1:2.1.9-9ubuntu1.2 0
        500 http://archive.ubuntu.com hardy-proposed/main Packages
        100 /var/lib/dpkg/status
     1:2.1.9-9ubuntu1.1 0
        500 http://ro.archive.ubuntu.com hardy-updates/main Packages
     1:2.1.9-9ubuntu1 0
        500 http://ro.archive.ubuntu.com hardy/main Packages


root at utest-hhs32:~# ls -la /var/log/mailman/
total 12
drwxrws---  2 root list 4096 2010-12-15 16:36 .
drwxr-xr-x 11 root root 4096 2010-12-15 16:33 ..
-rw-rw-r--  1 list list    0 2010-12-15 16:34 error
-rw-rw-r--  1 list list  729 2010-12-15 16:34 qrunner

root at utest-hhs32:~# logrotate -f /etc/logrotate.d/mailman <--- (notice how there is no message displayed)
root at utest-hhs32:~# ls -la /var/log/mailman/
total 16
drwxrws---  2 root list 4096 2010-12-15 16:36 .
drwxr-xr-x 11 root root 4096 2010-12-15 16:33 ..
-rw-rw-r--  1 list list    0 2010-12-15 16:36 error
-rw-rw-r--  1 list list    0 2010-12-15 16:34 error.1
-rw-rw-r--  1 list list  729 2010-12-15 16:36 qrunner
-rw-rw-r--  1 list list 1458 2010-12-15 16:36 qrunner.1

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/244233

Title:
  Logrotate is noisy with: Re-opening all log files

Status in GNU Mailman:
  New
Status in “mailman” package in Ubuntu:
  Fix Released
Status in “mailman” source package in Hardy:
  Fix Committed

Bug description:
  Binary package hint: mailman

When logrotate runs for mailman you get this:

/etc/cron.daily/logrotate:
Re-opening all log files
Re-opening all log files

It calls mailmanctl reopen. If it called it with a -q it would be quiet.

IMPACT: when rotating the mailman logfiles, 'mailmanctl reopen' is called
from /etc/logrotate.d/mailman, to get mailman to reopen the new logfiles.
For every call, mailman prints message "Re-opening all log files", which
gets sent to the user in a (useless) email.

This was fixed upstream in mailman 2.1.9-10 and Karmic has 2.1.12-2.

TEST CASE:

- install mailman (apt-get install mailman)
- create the default mailman list with the following command:
    newlist mailman
- start mailman (/etc/init.d/mailman start), there should be a couple of
  files in /var/log/mailman
- force a logrotate of these files by running:
    logrotate -f /etc/logrotate.d/mailman
- you should see the following output:

root at utest-hhs32:/var/log/mailman# logrotate -f /etc/logrotate.d/mailman
Re-opening all log files
Re-opening all log files

This is called from crontab so there will be an email sent to users every
time.

- install the patched version, and run the above command again, it should
be quiet, without any messages.

REGRESSION POTENTIAL: low. According to the mailmanctl help page:

    -q/--quiet
      Don't print status messages.  Error messages are still printed to
      standard error.

By applying this patch, users will not get the informational messages
but they will still get any error message.







More information about the Ubuntu-sponsors mailing list