debian/cubicweb-ctl.logrotate
author Rémi Cardona <remi.cardona@logilab.fr>
Fri, 03 Jul 2015 12:07:44 +0200
changeset 10505 a9becf2cce8b
parent 5840 60880c81e32e
permissions -rw-r--r--
[web] Stop using negative indices with os.stat results The python doc says: More items may be added at the end by some implementations. .st_mtime is also more readable than [-2].

/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
}