debian/cubicweb-ctl.logrotate
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 03 Dec 2014 16:29:16 +0100
changeset 10125 bc6461a7d2da
parent 5840 60880c81e32e
permissions -rw-r--r--
[server] add a db-namespace option in source definition (closes #1631339) "namespace" is preferred to the postgresql term "schema" to try and avoid confusion with cubicweb's schema. cubicweb now depends on logilab-database >= 1.13.0

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