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:"