# GuruConnect log rotation configuration
# Copy to: /etc/logrotate.d/guruconnect

/var/log/guruconnect/*.log {
    daily
    rotate 30
    compress
    delaycompress
    missingok
    notifempty
    create 0640 guru guru
    sharedscripts
    postrotate
        systemctl reload guruconnect >/dev/null 2>&1 || true
    endscript
}

# If using journald (systemd), logs are managed automatically
# View logs with: journalctl -u guruconnect
# Configure journald retention in: /etc/systemd/journald.conf
#   SystemMaxUse=500M
#   MaxRetentionSec=1month
