debian/cubicweb-ctl.logrotate
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 13 Mar 2014 15:33:22 +0100
branchstable
changeset 9592 6fd2651719bc
parent 5840 60880c81e32e
permissions -rw-r--r--
[ext/rest] Catch SystemExit raised by docutils docutils publisher may raise SystemExit which is not caught by Exception. Closes #3648763.

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