X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fbasic%2Fconfigure.sh;h=5257578b941b98af6a79a4e8ee0bf51607ea8fef;hb=1061cb8cf19ca6d594505c3e487606c0dd0634ff;hp=7a3705b644fe020778e9f35d6b54cc85f239e389;hpb=4c3f0a4d7e4db76996404d80c6f939548fca656f;p=anna.git diff --git a/example/diameter/launcher/deployments/basic/configure.sh b/example/diameter/launcher/deployments/basic/configure.sh index 7a3705b..5257578 100755 --- a/example/diameter/launcher/deployments/basic/configure.sh +++ b/example/diameter/launcher/deployments/basic/configure.sh @@ -5,7 +5,7 @@ ############# # General -EXE_BN=ADML-launcher +EXE_BN=ADML ############# # FUNCTIONS # @@ -24,11 +24,12 @@ createRunScript () { cat << EOF > run.sh #!/bin/bash cd \`dirname \$0\` -STARTED=\`pgrep $1 2>/dev/null\` +STARTED=\`pgrep $1$ 2>/dev/null\` [ \$? -eq 0 ] && { echo "Already started!"; echo "\$STARTED" ; exit 1 ; } 0> launcher.trace rm -f counters/* test-reports/* # Execution line: +export LD_LIBRARY_PATH=\$PWD/dynlibs ./$@ --services services.xml & echo \$! > .pid EOF @@ -88,8 +89,8 @@ then fi # Run script: -EXE_LINK=ADML-$tol -ln -sf $EXE_BN $EXE_LINK +EXE_LINK=`basename $PWD` +[ "$EXE_BN" != "$EXE_LINK" ] && ln -sf $EXE_BN $EXE_LINK case $tol in