mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 03:42:08 +08:00
Script Refactoring
This commit is contained in:
parent
dfb5fd0c55
commit
f2cd1665c1
@ -25,7 +25,7 @@ start_binaries() {
|
||||
local bin_full_path=$(get_bin_full_path "$binary")
|
||||
# Loop to start binary the specified number of times
|
||||
for ((i=0; i<count; i++)); do
|
||||
echo -e "Starting $binary instance $i: $bin_full_path -i $i -c $OPENIM_OUTPUT_CONFIG\n"
|
||||
echo "Starting $binary instance $i: $bin_full_path -i $i -c $OPENIM_OUTPUT_CONFIG"
|
||||
cmd=("$bin_full_path" -i "$i" -c "$OPENIM_OUTPUT_CONFIG")
|
||||
nohup "${cmd[@]}" >> "${LOG_FILE}" 2> >(tee -a "$ERR_LOG_FILE" | while read line; do echo -e "\e[31m${line}\e[0m"; done >&2) &
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user