Dynamic lib selection and deployment
[anna.git] / example / diameter / launcher / deployments / basic / configure.sh
index 7a3705b..f03eca7 100755 (executable)
@@ -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,7 +89,7 @@ then
 fi
 
 # Run script:
-EXE_LINK=ADML-$tol
+EXE_LINK=`basename $PWD`
 ln -sf $EXE_BN $EXE_LINK
 
 case $tol in