# Log rotation configuration for Archipelago
/var/log/archipelago/*.log {
    daily
    rotate 30
    compress
    delaycompress
    missingok
    notifempty
    create 0644 root root
    sharedscripts
    postrotate
        /usr/bin/systemctl reload archipelago > /dev/null 2>&1 || true
    endscript
}

/var/lib/archipelago/logs/*.log {
    daily
    rotate 14
    compress
    delaycompress
    missingok
    notifempty
    create 0644 archipelago archipelago
}
