debian/cubicweb-ctl.logrotate
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Wed, 16 Mar 2011 09:37:46 +0100
brancholdstable
changeset 7083 b8e35cde46e9
parent 5840 60880c81e32e
permissions -rw-r--r--
help pylint by explicitely defining some attributes * the logging functions automatically set by set_log_methods * the attributes of Hook classes (eidfrom, entity...):

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