# Logrotate configuration file fo Zope Debian package

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