/var/opt/nec/neccmcd
{
    minsize 1M
    sharedscripts
    postrotate
        if ps aux | awk '{print $2,$11}' | grep neccmcd
        then
            kill -USR1 `pgrep neccmcd`
        fi
    endscript
}
