Public bug reported:

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 protected]
    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!

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1469922

Title:
  Rotated daily but has keyword weekly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1469922/+subscriptions

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

Reply via email to