mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +08:00
Optimizing scripts
This commit is contained in:
parent
735dd7af78
commit
604586c3ba
@ -108,7 +108,7 @@ function openim::tools::start_service() {
|
|||||||
|
|
||||||
local status=$?
|
local status=$?
|
||||||
if [ $status -eq 0 ]; then
|
if [ $status -eq 0 ]; then
|
||||||
openim::log::success "Service ${binary_name} started successfully."
|
openim::log::colorless "Service ${binary_name} started successfully."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
openim::log::error "Failed to start service ${binary_name}."
|
openim::log::error "Failed to start service ${binary_name}."
|
||||||
@ -141,7 +141,7 @@ function openim::tools::pre-start() {
|
|||||||
function openim::tools::post-start() {
|
function openim::tools::post-start() {
|
||||||
#openim::log::info "Post-start actions for OpenIM Tools..."
|
#openim::log::info "Post-start actions for OpenIM Tools..."
|
||||||
for tool in "${OPENIM_TOOLS_POST_START_NAME_LISTARIES[@]}"; do
|
for tool in "${OPENIM_TOOLS_POST_START_NAME_LISTARIES[@]}"; do
|
||||||
openim::log::info "Starting tool ${tool}..."
|
openim::log::info "Starting tool: ${tool}"
|
||||||
openim::tools::start_service ${tool}
|
openim::tools::start_service ${tool}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
@ -122,7 +122,7 @@ if [[ $? -ne 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
openim::log::info "\n## Post Starting openim services"
|
openim::log::info "Post Starting openim services"
|
||||||
${TOOLS_START_SCRIPTS_PATH} openim::tools::post-start
|
${TOOLS_START_SCRIPTS_PATH} openim::tools::post-start
|
||||||
|
|
||||||
openim::log::success "All openim services have been successfully started!"
|
openim::log::success "All openim services have been successfully started!"
|
||||||
Loading…
x
Reference in New Issue
Block a user