diff --git a/script/start_rpc_service.sh b/script/start_rpc_service.sh index f84cb60fb..f52af23aa 100644 --- a/script/start_rpc_service.sh +++ b/script/start_rpc_service.sh @@ -84,7 +84,7 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do #Start the service in the background # ./${service_filename[$i]} -port $j & cmd="./${service_filename[$i]} -port $j" - if [ $j -eq 0 -o $j -eq 1 ]; then + if [ $i -eq 0 -o $i -eq 1 ]; then cmd="./${service_filename[$i]} -port $j -prometheus_port ${prome_ports[$i]}" fi echo $cmd