Option "-f" in /etc/cron.daily/logrotate force rotation of all logs every day, overwriting options weekly/monthly in config files

Bug #812889 reported by Victor Hugo dos Santos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
logrotate (Ubuntu)
New
Undecided
Unassigned

Bug Description

In the "/etc/cron.daily/logrotate" we have:

===============
#!/bin/sh

test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate -f /etc/logrotate.conf
===============

but option -f force logrotate to rotate all logs every day and options weekly and monthly in config files don't work.

solution: Remove option -f in "/etc/cron.daily/logrotate"

logrotate:
  Installed: 3.7.8-4ubuntu2.1
  Candidate: 3.7.8-4ubuntu2.1
  Version table:
 *** 3.7.8-4ubuntu2.1 0
        500 http://archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     3.7.8-4ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages

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.