debian/cubicweb-ctl.logrotate
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 22 Mar 2010 17:58:03 +0100
changeset 4970 1f3d8946ea84
parent 0 b97547f5f1fa
child 5806 9ef0e95f4d2b
permissions -rw-r--r--
fix security issue introduced by 4967:04543ed0bbdc: attributes explicitly set by hooks should not be checked by security hooks

/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; \
           else \
              /etc/init.d/cubicweb reload > /dev/null; \
           fi; \
        endscript
}