Rotated daily but has keyword weekly

Bug #1469922 reported by Michael Heuberger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
logrotate (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have this logroate config in /etc/logrotate.d which has the 'weekly' keyword but I still get it every day. It's triggered via a daily cron but still, I expect logrotate to be smart here:

/var/log/nginx/error.log
/var/log/nginx/production.videomail.io/error.log {
    sharedscripts
    create 0644 www-data adm
    weekly
    rotate 12
    mail <email address hidden>
    notifempty
    mailfirst
    prerotate
        if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
             run-parts /etc/logrotate.d/httpd-prerotate; \
        fi \
    endscript
    postrotate
        [ -s /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
    endscript
}

Version info:

$ logrotate -v
logrotate 3.8.7 - Copyright (C) 1995-2001 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License

Let me know if it's a bug or if my above config is wrong.

Thanks!

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.