/opt/SIA/log/siashadowapi.log {
    missingok
    notifempty
    compress
    size 5M
    copytruncate
    dateext
    dateformat -%s
    su mmtec mmtec
    # restart ShadowAPI to switch to the new log file
    postrotate
        systemctl restart siashadowapi
    endscript
}

