debian/cubicweb-ctl.logrotate
author David Douard <david.douard@logilab.fr>
Mon, 11 Feb 2013 11:47:50 +0100
changeset 8829 bb14dc9848ec
parent 5840 60880c81e32e
permissions -rw-r--r--
[c-c list] add an optional argument to the list command (closes #2709703) This optional argument allows to restrict listing to only a given type of items (cubes, instances, configurations).

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