|
|
@ -726,19 +726,18 @@ openim::util::stop_services_with_name() {
|
|
|
|
elapsed_time=$(($SECONDS - $start_time))
|
|
|
|
elapsed_time=$(($SECONDS - $start_time))
|
|
|
|
if [[ $elapsed_time -ge $timeout ]]; then
|
|
|
|
if [[ $elapsed_time -ge $timeout ]]; then
|
|
|
|
echo "Timeout of ${timeout} seconds reached."
|
|
|
|
echo "Timeout of ${timeout} seconds reached."
|
|
|
|
|
|
|
|
openim::log::info "# Begin to check all openim service"
|
|
|
|
|
|
|
|
openim::util::check_by_signal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Check ports:"
|
|
|
|
|
|
|
|
openim::util::check_ports_by_signal ${OPENIM_SERVER_PORT_LISTARIES[@]}
|
|
|
|
break # Timeout, exit while loop
|
|
|
|
break # Timeout, exit while loop
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
openim::log::info "# Begin to check all openim service"
|
|
|
|
|
|
|
|
openim::util::check_by_signal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Check ports:"
|
|
|
|
|
|
|
|
openim::util::check_ports_by_signal ${OPENIM_SERVER_PORT_LISTARIES[@]}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Print information about services whose processes couldn't be stopped.
|
|
|
|
# Print information about services whose processes couldn't be stopped.
|
|
|
|
if [[ ${#not_stopped[@]} -ne 0 ]]; then
|
|
|
|
if [[ ${#not_stopped[@]} -ne 0 ]]; then
|
|
|
|