mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-08 23:42:17 +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
|
# Main function to start binaries
|
||||||
|
|
||||||
|
openim::log::print_blue "Starting tools"
|
||||||
|
|
||||||
result=$(start_tools)
|
result=$(start_tools)
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
@ -20,16 +21,19 @@ if [ $ret_val -ne 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
openim::log::print_green "All tools executed successfully, details are as follows:"
|
|
||||||
echo "$result"
|
echo "$result"
|
||||||
|
|
||||||
|
|
||||||
|
openim::log::print_green "All tools executed successfully"
|
||||||
|
openim::log::print_blue "Starting services"
|
||||||
|
|
||||||
kill_exist_binaries
|
kill_exist_binaries
|
||||||
|
|
||||||
result=$(check_binaries_stop)
|
result=$(check_binaries_stop)
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
|
|
||||||
if [ $ret_val -ne 0 ]; then
|
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"
|
openim::log::print_red_no_time_stamp "$result"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user