X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fst-client%2Frun_all.sh;h=3b32e686cf0bebc902f70e2a284ce0fcb0dd1762;hb=61f81319bb14f08094488e8a2478ff4e0d6d661a;hp=8f2cd56716ea8b0e94477e81415f67758e7c31b8;hpb=daeeaacceeccefcac46838f460b19409cc5c4cb4;p=anna.git diff --git a/example/diameter/launcher/deployments/st-client/run_all.sh b/example/diameter/launcher/deployments/st-client/run_all.sh index 8f2cd56..3b32e68 100755 --- a/example/diameter/launcher/deployments/st-client/run_all.sh +++ b/example/diameter/launcher/deployments/st-client/run_all.sh @@ -1,6 +1,45 @@ #!/bin/bash cd `dirname $0` +if [ ! -d "ADMLS" ] +then + echo + echo "Run './configure.sh' first !" + echo + exit 1 +fi + for run in `ls ADMLS/*/run.sh` do - $run + cd `dirname $run` + instance_name=$(basename $PWD) + pkill -9 $instance_name + [ $? -eq 0 ] && echo -n "Re-" + echo "Starting $instance_name ..." + ./run.sh > /dev/null & + cd - >/dev/null done +echo +wait $(jobs -p) + +sleep 3 +./checkStatus.sh + +cat << EOF + + + + To stop the processes, you could execute: pgrep ADML-[0-9] | xargs kill + Anyway, executing './run.sh' again you will restart the ADML instances. + + Now it's time to './program.sh' the started instances with the desired + scenary. There are two programming variants: + + ./program.sh + ./program.sh dynamic + + + Done! +EOF + +echo +