Script Refactoring

pull/2148/head
skiffer-git 2 years ago
parent 07a9deb297
commit 9918d71064

@ -43,12 +43,17 @@ for binary in "${!binaries[@]}"; do
fi
done
for binary in "${!binaries[@]}"; do
expected_count=${binaries[$binary]}
full_path=$(get_bin_full_path "$binary")
check_binary_ports "$full_path"
base_path=$(get_bin_full_path "$binary")
for ((i=0; i<expected_count; i++)); do
full_path="${base_path} -i ${i} -c $OPENIM_OUTPUT_CONFIG"
check_binary_ports "$full_path"
done
done

@ -21,7 +21,7 @@ start_binaries() {
# Loop to start binary the specified number of times
for ((i=0; i<count; i++)); do
echo "Starting $binary instance $i: $bin_full_path -i $i -c $OPENIM_OUTPUT_CONFIG"
nohup "$bin_full_path" -i "$i" -c "$conf_dir" > "test.log" 2>&1 &
nohup "$bin_full_path" -i "$i" -c "$OPENIM_OUTPUT_CONFIG" > "test.log" 2>&1 &
done
done

Loading…
Cancel
Save