touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #86893
[Bug 1469922] [NEW] Rotated daily but has keyword weekly
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 michael.heuberger@xxxxxxxxxxxxxxxxx
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
Touch seeded packages, which is subscribed to logrotate in Ubuntu.
https://bugs.launchpad.net/bugs/1469922
Title:
Rotated daily but has keyword weekly
Status in logrotate package in Ubuntu:
New
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 michael.heuberger@xxxxxxxxxxxxxxxxx
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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1469922/+subscriptions
Follow ups
References