debian/cubicweb-ctl.logrotate
author David Douard <david.douard@logilab.fr>
Tue, 19 Jul 2016 19:30:10 +0200
branch3.22
changeset 11438 828483a88825
parent 5840 60880c81e32e
permissions -rw-r--r--
[webctl] set uid of file produced by gen-static-datadir (closes #11298794)

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