/var/log/open5gs/*.log {
    daily
    sharedscripts
    missingok
    compress
    rotate 14
    create 640 open5gs open5gs

    postrotate
        for i in nrfd scpd seppd pcrfd hssd ausfd udmd udrd upfd sgwcd sgwud smfd mmed amfd; do
            if systemctl --quiet is-active open5gs-$i; then
                 systemctl reload open5gs-$i
            fi
        done
    endscript
}
