mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
fix: fix the error
This commit is contained in:
parent
132f3b882a
commit
078ed80050
@ -40,15 +40,15 @@ trap handle_error ERR
|
||||
|
||||
. $(dirname ${BASH_SOURCE})/install/openim-msgtransfer.sh openim::msgtransfer::check_by_signal
|
||||
|
||||
# Assuming openim::util::check_ports_by_signal function sets a proper exit status
|
||||
# based on whether services are running or not.
|
||||
if openim::util::check_ports_by_signal ${OPENIM_SERVER_PORT_LISTARIES[@]}; then
|
||||
echo "+++ cat openim log file >>> ${LOG_FILE}"
|
||||
openim::log::error_exit "The service does not stop properly, there are still processes running, please check!"
|
||||
else
|
||||
openim::util::check_ports_by_signal ${OPENIM_SERVER_PORT_LISTARIES[@]}
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "++++ All openim service ports stop successfully !"
|
||||
else
|
||||
echo "+++ cat openim log file >>> ${LOG_FILE}"
|
||||
openim::log::error_exit "The service does not stop properly, there are still processes running, please check!"
|
||||
fi
|
||||
|
||||
|
||||
set -e
|
||||
|
||||
trap - ERR
|
||||
Loading…
x
Reference in New Issue
Block a user