debian/cubicweb-ctl.logrotate
author Julien Cristau <julien.cristau@logilab.fr>
Fri, 20 Jul 2012 09:22:51 +0200
branchstable
changeset 8477 42e8755b3aba
parent 5840 60880c81e32e
permissions -rw-r--r--
[config] Set CWDEV, aka dev mode, according to presence of the i18n directory, not .hg

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