# Logrotate configuration file fo Zope Debian package

"/var/log/zope3/*/z3.log" "/var/log/zope3/*/access.log" "/var/log/zope3/*/transcript.log" {
    weekly
    missingok
    rotate 52
    copytruncate
    compress
    delaycompress
    notifempty
    create
    sharedscripts
    postrotate
    sh -c 'for i in /var/lib/zope3/instance/* ; do [ -d "$i/log" -a -x "$i/bin/zopectl" -a -e "$i/var/zopectlsock" ] && "$i"/bin/zopectl logreopen; done'
    endscript
}
