diff --git a/scripts/xp-instance-runner b/scripts/xp-instance-runner index 7e0a996..892b308 100755 --- a/scripts/xp-instance-runner +++ b/scripts/xp-instance-runner @@ -10,7 +10,7 @@ INTERVAL=$3 SIZE=$4 ALLOWED_BOOTSTRAP=190 ALLOWED_TIME=`expr $(expr ${COUNT} * ${INTERVAL}) / 1000 + ${ALLOWED_BOOTSTRAP}` -echo "Will run for ${ALLOWED_TIME} (count=$COUNT, interval=$INTERVAL)" +echo "Will run for ${ALLOWED_TIME} (count=$1, interval=$2)" # Create folders docker run \ @@ -24,11 +24,12 @@ docker run \ docker run \ --privileged \ --rm \ + -d \ --name "$XP_ID-server" \ -v `pwd`/shared:/home/donar/shared \ -v `pwd`/log:/home/donar/log \ registry.gitlab.inria.fr/qdufour/donar \ - ${XP_NAME}-server & + ${XP_NAME}-server sleep 10 @@ -36,12 +37,13 @@ sleep 10 docker run \ --privileged \ --rm \ + -d \ --name "$XP_ID-client" \ -v `pwd`/res:/home/donar/res \ -v `pwd`/shared:/home/donar/shared \ -v `pwd`/log:/home/donar/log \ registry.gitlab.inria.fr/qdufour/donar \ - ${XP_NAME}-client $COUNT $INTERVAL $SIZE & + ${XP_NAME}-client $COUNT $INTERVAL $SIZE sleep $ALLOWED_TIME