mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-10 08:32:15 +08:00
Script Refactoring
This commit is contained in:
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…
x
Reference in New Issue
Block a user