debian/cubicweb-ctl.logrotate
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 10 Dec 2010 15:47:09 +0100
branchstable
changeset 6742 e03d427209cb
parent 5840 60880c81e32e
permissions -rw-r--r--
[registry] backout 120c7ea6e1fa: errors should not pass silently Catching ImportError silently while loading files has too many side effects. (e.g. if system hooks / entities can't be registered).

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