From bbb086f04746267a9d9c9da497872b9bbac55214 Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Thu, 22 Feb 2024 12:05:26 +0800 Subject: [PATCH] fix: update the server name --- scripts/install/openim-push.sh | 2 +- scripts/lib/util.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install/openim-push.sh b/scripts/install/openim-push.sh index 95da16c8a..4a03e1e5e 100755 --- a/scripts/install/openim-push.sh +++ b/scripts/install/openim-push.sh @@ -62,7 +62,7 @@ function openim::push::start() { OPENIM_PUSH_PORTS_ARRAY=$(openim::util::list-to-string ${OPENIM_PUSH_PORT} ) PUSH_PROM_PORTS_ARRAY=$(openim::util::list-to-string ${PUSH_PROM_PORT} ) - openim::util::stop_services_with_name ${SERVER_NAME} + openim::util::stop_services_with_name ${OPENIM_PUSH_BINARY} openim::log::status "push port list: ${OPENIM_PUSH_PORTS_ARRAY[@]}" openim::log::status "prometheus port list: ${PUSH_PROM_PORTS_ARRAY[@]}" diff --git a/scripts/lib/util.sh b/scripts/lib/util.sh index 68c29bab4..5e30f2b94 100755 --- a/scripts/lib/util.sh +++ b/scripts/lib/util.sh @@ -676,6 +676,8 @@ openim::util::stop_services_with_name() { fi done + + # Print information about services whose processes couldn't be stopped. if [[ ${#not_stopped[@]} -ne 0 ]]; then openim::log::info "Services that couldn't be stopped:"