bigcouch log rotation doesn't work as expected
the bigcouch logs should get rotated every day, class site_couchdb::logrotate creates this file:
root@ant:/opt/bigcouch/var/log# cat /etc/logrotate.d/bigcouch /opt/bigcouch/var/log/*.log { rotate 7 daily compress missingok notifempty copytruncate }
however, the logs are not rotated every day:
root@ant:/opt/bigcouch/var/log# date Wed Jan 15 14:57:11 UTC 2014 root@ant:/opt/bigcouch/var/log# ls -alh /opt/bigcouch/var/log/bigcouch.log -rw-r--r-- 1 bigcouch root 140M Jan 15 14:57 /opt/bigcouch/var/log/bigcouch.log root@ant:/opt/bigcouch/var/log# head -1 /opt/bigcouch/var/log/bigcouch.log [Fri, 10 Jan 2014 15:04:02 GMT] [info] [<0.86.0>] [--------] Apache CouchDB has started on http://127.0.0.1:5986/ root@ant:/opt/bigcouch/var/log# logrotate -d /etc/logrotate.conf ... rotating pattern: /opt/bigcouch/var/log/*.log after 1 days (7 rotations) empty log files are not rotated, old logs are removed considering log /opt/bigcouch/var/log/bigcouch.log log does not need rotating ...
(from redmine: created on 2014-01-15, closed on 2014-01-30, relates #4777 (closed), relates #5074, relates #5075 (closed), relates #4907 (closed))