debian/cubicweb-ctl.logrotate
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 28 Mar 2011 15:23:57 +0200
branchstable
changeset 7117 44775b275d45
parent 5840 60880c81e32e
permissions -rw-r--r--
[facets] closes #1569459 (date-range facet with year < 1900) use lgc.date.ustrftime() and lgc.date.ticks2datetime to convert js date ticks and have a chance to handle dates with year < 1900.

/var/log/cubicweb/*.log {
        weekly
        missingok
        rotate 10
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
           if [ -x /usr/sbin/invoke-rc.d ]; then \
              invoke-rc.d cubicweb reload > /dev/null 2>&1; \
           else \
              /etc/init.d/cubicweb reload > /dev/null 2>&1; \
           fi; \
        endscript
}