mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-10 17:22:11 +08:00
Script Refactoring
This commit is contained in:
parent
07a9deb297
commit
9918d71064
@ -43,12 +43,17 @@ for binary in "${!binaries[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
for binary in "${!binaries[@]}"; do
|
for binary in "${!binaries[@]}"; do
|
||||||
expected_count=${binaries[$binary]}
|
expected_count=${binaries[$binary]}
|
||||||
full_path=$(get_bin_full_path "$binary")
|
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"
|
check_binary_ports "$full_path"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ start_binaries() {
|
|||||||
# Loop to start binary the specified number of times
|
# Loop to start binary the specified number of times
|
||||||
for ((i=0; i<count; i++)); do
|
for ((i=0; i<count; i++)); do
|
||||||
echo "Starting $binary instance $i: $bin_full_path -i $i -c $OPENIM_OUTPUT_CONFIG"
|
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
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user