fix: fix the make stop script

pull/1933/head
luhaoling 2 years ago
parent 76c976726b
commit 8e4836f6f9

@ -1,41 +0,0 @@
#!/usr/bin/env bash
# Copyright © 2023 OpenIM. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This script is check openim service is running normally
#
# Usage: `scripts/check-all.sh`.
# Encapsulated as: `make check`.
# READ: https://github.com/openimsdk/open-im-server/tree/main/scripts/install/environment.sh
set -o errexit
set -o nounset
set -o pipefail
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${OPENIM_ROOT}/scripts/install/common.sh"
OPENIM_VERBOSE=4
openim::log::info "# Begin to check all openim service"
. $(dirname ${BASH_SOURCE})/install/openim-msgtransfer.sh openim::msgtransfer::check_by_signal
echo "Check ports:"
openim::util::check_ports_by_signal ${OPENIM_SERVER_PORT_LISTARIES[@]}
set -e
trap - ERR

@ -36,6 +36,12 @@ openim::util::stop_services_by_name_signal "${OPENIM_OUTPUT_HOSTBIN}"
sleep 1 sleep 1
source "${OPENIM_ROOT}/scripts/check-all-by-signal.sh" openim::log::info "# Begin to check all openim service"
. $(dirname ${BASH_SOURCE})/install/openim-msgtransfer.sh openim::msgtransfer::check_by_signal
echo "Check ports:"
openim::util::check_ports_by_signal ${OPENIM_SERVER_PORT_LISTARIES[@]}
openim::log::success "✨ All processes to be killed" openim::log::success "✨ All processes to be killed"
Loading…
Cancel
Save