This commit is contained in:
wangchuxiao
2022-09-14 10:25:31 +08:00
parent e32a3fbfca
commit 54a3a755d6
2 changed files with 6 additions and 3 deletions
-2
View File
@@ -80,10 +80,8 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do
list_to_string $portList2
prome_ports=($ports_array)
#Start related rpc services based on the number of ports
# for j in ${service_ports}; do
for ((j = 0; j < ${#service_ports[*]}; j++)); do
#Start the service in the background
# ./${service_filename[$i]} -port $j &
cmd="./${service_filename[$i]} -port ${service_ports[$j]} -prometheus_port ${prome_ports[$j]}"
if [ $i -eq 0 -o $i -eq 1 ]; then
cmd="./${service_filename[$i]} -port ${service_ports[$j]}"