debian/cubicweb-ctl.logrotate
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 01 Oct 2010 17:03:01 +0200
branchstable
changeset 6381 c9eed5037223
parent 5840 60880c81e32e
permissions -rw-r--r--
[repo threads] Add several safety when looking for a callable name. We lookup __name__ attribute, then func_name attribute. object repr is a last fallback

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