|
|
|
@ -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
|