debian/cubicweb-ctl.logrotate
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 26 Apr 2013 11:08:06 +0200
changeset 8935 a8a9ba6f4cdd
parent 5840 60880c81e32e
permissions -rw-r--r--
[server/test] use server config in migration This allows a lighter initialisation (no rtag needed). Execution of those test move from 300 secondes to 220 seconds here. A 25% speedup

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