debian/cubicweb-ctl.logrotate
author David Douard <david.douard@logilab.fr>
Fri, 10 Jul 2015 09:30:04 +0200
changeset 10532 2cc74c688eb9
parent 5840 60880c81e32e
permissions -rw-r--r--
[datafeed] also catch EnvironmentError when trying to load the cwclientlib config file means the config file has not been found, so fall back to the old implementation instead of crashing.

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