X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=tools%2Flocal-build.sh;h=cbaa87ad7a90d76e3adc04c0d82443edfaac60b3;hb=424ad53aec685817378b2c926f196652f56712d4;hp=4ff12f2ba267a4f173de223187cab420cce2fa6f;hpb=e93311d0d1e614b2ee73cc88d8a04fdec217cff8;p=osm%2Fdevops.git diff --git a/tools/local-build.sh b/tools/local-build.sh index 4ff12f2b..cbaa87ad 100755 --- a/tools/local-build.sh +++ b/tools/local-build.sh @@ -191,6 +191,14 @@ function run_httpserver() { nohup python3 -m http.server ${HTTPPORT} --directory "${HTTPDDIR}" &>/dev/null & } +function run_httpserver() { + EXISTING_PID=$(ps auxw | grep "http.server $HTTPPORT" | grep -v grep | awk '{print $2}') + if [ ! -z $EXISTING_PID ] ; then + kill $EXISTING_PID + fi + nohup python3 -m http.server ${HTTPPORT} --directory "${HTTPDDIR}" &>/dev/null & +} + function stage_2() { print_section "Performing Stage 2" MODULES="common devops IM LCM MON N2VC NBI NG-UI NG-SA osmclient PLA POL RO tests"