mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 05:12:10 +08:00
Optimizing scripts
This commit is contained in:
parent
5afe9854af
commit
1169ebf8cf
@ -129,7 +129,7 @@ function openim::tools::start() {
|
|||||||
function openim::tools::pre-start() {
|
function openim::tools::pre-start() {
|
||||||
#openim::log::info "Preparing to start OpenIM Tools..."
|
#openim::log::info "Preparing to start OpenIM Tools..."
|
||||||
for tool in "${OPENIM_TOOLS_PRE_START_NAME_LISTARIES[@]}"; do
|
for tool in "${OPENIM_TOOLS_PRE_START_NAME_LISTARIES[@]}"; do
|
||||||
#openim::log::colorless "Starting tool: ${tool}"
|
openim::log::colorless "Starting tool: ${tool}"
|
||||||
if ! openim::tools::start_service ${tool} ${OPNEIM_CONFIG}; then
|
if ! openim::tools::start_service ${tool} ${OPNEIM_CONFIG}; then
|
||||||
openim::log::error "Failed to start ${tool}, aborting..."
|
openim::log::error "Failed to start ${tool}, aborting..."
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@ -83,7 +83,7 @@ fi
|
|||||||
# TODO Prelaunch tools, simple for now, can abstract functions later
|
# TODO Prelaunch tools, simple for now, can abstract functions later
|
||||||
TOOLS_START_SCRIPTS_PATH=${START_SCRIPTS_PATH}/openim-tools.sh
|
TOOLS_START_SCRIPTS_PATH=${START_SCRIPTS_PATH}/openim-tools.sh
|
||||||
|
|
||||||
openim::log::status "Start the preprocessing tools:"
|
openim::log::status "Start the preprocessing tools"
|
||||||
|
|
||||||
|
|
||||||
if ! ${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start; then
|
if ! ${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start; then
|
||||||
@ -92,7 +92,7 @@ if ! ${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
openim::log::success "Preprocessing has been successfully completed."
|
openim::log::success "Preprocessing has been successfully completed!"
|
||||||
|
|
||||||
result=$("${OPENIM_ROOT}"/scripts/stop-all.sh)
|
result=$("${OPENIM_ROOT}"/scripts/stop-all.sh)
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user