X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=mc-core%2Fcontainer_start.sh;h=b241ecd774d4acfd7b615f4c32a5f7aba7c6f0c0;hb=e81291ed4835042659abf2b0d59f9f928486ed5d;hp=cc322e04c959afc2cf8aafe24052f974eac2fbd7;hpb=0eb834e581b25c0ac0a657b1b7d8bb70fe4d2aa9;p=ric-app%2Fmc.git diff --git a/mc-core/container_start.sh b/mc-core/container_start.sh index cc322e0..b241ecd 100755 --- a/mc-core/container_start.sh +++ b/mc-core/container_start.sh @@ -41,7 +41,12 @@ set -e -SIMULATOR_MODE=`python /mc/extract_params.py $XAPP_DESCRIPTOR_PATH simulator_mode` +FIFO_DIR="/tmp/mcl/fifos" + +SIMULATOR_MODE=`python /mc/extract_params.py ${XAPP_DESCRIPTOR_PATH}/config-file.json simulator_mode` +RMR_PORT=`python /mc/extract_rmr_port.py ${XAPP_DESCRIPTOR_PATH}/config-file.json rmr-data` + +mkdir -p $FIFO_DIR if [ "$SIMULATOR_MODE" != "true" ] then @@ -49,11 +54,11 @@ then ( cd /playpen - if (( $USE_NNG )) || [[ ! -f bin/mc_listener_si ]] # we really want the si version unless forced + if [ "$RMR_PORT" != "" ] then - bin/mc_listener + bin/mc_listener -p $RMR_PORT else - bin/mc_listener_si + bin/mc_listener fi ) >/tmp/listener.std 2>&1 &