Public bug reported:

Binary package hint: lastfmsubmitd

lastfmsubmitd places a file in /etc/logrotate.d called lastfmsubmitd,
which looks like this:

/var/log/lastfm/*.log {
        weekly
        missingok
        rotate 7
        postrotate
                invoke-rc.d --quiet lastfmsubmitd force-reload > /dev/null
                invoke-rc.d --quiet lastmp force-reload > /dev/null
        endscript
        compress
        notifempty
}

This appears to work fine sometimes, but sometimes one of the commands
redirected to /dev/null appears to output something on stderr, which is
not redirected.  In at least some cases, this causes logrotate to
freeze, becoming "[defunct]" in the ps -ef output.

This frozen logrotate process sits there forever, preventing cron.daily
from running, which is a very serious problem.

I think the fix is to change the file to look like this:

/var/log/lastfm/*.log {
        weekly
        missingok
        rotate 7
        postrotate
                invoke-rc.d --quiet lastfmsubmitd force-reload > /dev/null 2>&1
                invoke-rc.d --quiet lastmp force-reload > /dev/null 2>&1
        endscript
        compress
        notifempty
}

so the stderr output is also piped to /dev/null.

** Affects: lastfmsubmitd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
logrotate script freezes anacron
https://bugs.launchpad.net/bugs/136717
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to