mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-08 07:27:38 +08:00
Script Refactoring
This commit is contained in:
parent
21a6fa2a3e
commit
f2ef60f667
@ -11,6 +11,7 @@ source "$OPENIM_SCRIPTS/bricks.sh"
|
||||
|
||||
# Main function to start binaries
|
||||
|
||||
openim::log::print_blue "Starting tools"
|
||||
|
||||
result=$(start_tools)
|
||||
ret_val=$?
|
||||
@ -20,16 +21,19 @@ if [ $ret_val -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
openim::log::print_green "All tools executed successfully, details are as follows:"
|
||||
echo "$result"
|
||||
|
||||
|
||||
openim::log::print_green "All tools executed successfully"
|
||||
openim::log::print_blue "Starting services"
|
||||
|
||||
kill_exist_binaries
|
||||
|
||||
result=$(check_binaries_stop)
|
||||
ret_val=$?
|
||||
|
||||
if [ $ret_val -ne 0 ]; then
|
||||
openim::log::print_red "Some services running, details are as follows, abort start"
|
||||
openim::log::print_red "Some services running, details are as follows, abort start"
|
||||
openim::log::print_red_no_time_stamp "$result"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user