invalid logrotate configuration for unattended-upgrades

Bug #1081034 reported by Piotr Kęplicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Unattended-upgrades logrotate configuration (/etc/logrotate.d/unattended-upgrades) makes all the u-u logs rotate, not only the main "unattended-upgrades.log" file, but also daily session logs "unattended-upgrades-dpkg-$DATE.log".

Daily log files shouldn't be rotated since they're created one per session and are never written again.

Changing log file definition from
"/var/log/unattended-upgrades/unattended-upgrades*.log"
to wildcardless
"/var/log/unattended-upgrades/unattended-upgrades.log"
should resolve this problem.

Michael Vogt (mvo)
Changed in unattended-upgrades (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unattended-upgrades - 0.79.3ubuntu7

---------------
unattended-upgrades (0.79.3ubuntu7) raring; urgency=low

  [ Michael Vogt ]
  * data/logrotate.d/unattended-upgrades:
    - only logrotate
      /var/log/unattended-upgrades/unattended-upgrades{,-shutdown}.log
      and not the dpkg logs (LP: #1081034)
  * tests/*.py:
    - updated pep8 tests, make pyflakes test "test" dir too
  * test/test_regression.py:
    - regression test for crash in normal_upgrade exception handler

  [ Thomas Kluyver ]
  * lp:~takluyver/unattended-upgrades/apt-lock-crash:
    - fix encoding bug when writing a error to stderr
 -- Michael Vogt <email address hidden> Tue, 11 Dec 2012 18:52:24 +0100

Changed in unattended-upgrades (Ubuntu):
status: Fix Committed → Fix Released
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.