Initially missing /var/lib/logrotate/status file

Bug #781795 reported by Daniel Richard G.
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
logrotate (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: logrotate

I received the following e-mail message "Anacron job 'cron.daily' on myhostname" after installing Natty:

    /etc/cron.daily/logrotate:
    head: cannot open `status' for reading: No such file or directory
    sed: can't read status: No such file or directory

This script updates a file /var/lib/logrotate/status, but does not gracefully handle the first-time-run scenario, when this file does not exist.

Revision history for this message
Fridtjof Busse (fbusse-deactivatedaccount-deactivatedaccount) wrote :

I can confirm this problem.
This is especially annoying when you're deploying systems and every single one of the sends the same error-mail after the first logrotate run.
Should be an easy fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.