mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-20 19:49:17 +08:00
feat: add chmod
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
905c55caad
commit
049ae6eb80
4
.gitignore
vendored
4
.gitignore
vendored
@ -32,8 +32,8 @@ _output/
|
|||||||
### OpenIM deploy ###
|
### OpenIM deploy ###
|
||||||
deploy/openim_demo
|
deploy/openim_demo
|
||||||
deploy/openim-api
|
deploy/openim-api
|
||||||
deploy/openim_msg_gateway
|
deploy/openim-rpc-msg_gateway
|
||||||
deploy/openim_msg_transfer
|
deploy/openim-rpc-msg_transfer
|
||||||
deploy/openim-push
|
deploy/openim-push
|
||||||
deploy/openim_timer_task
|
deploy/openim_timer_task
|
||||||
deploy/openim-rpc-user
|
deploy/openim-rpc-user
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_cron_task
|
NAME=openim-crontask
|
||||||
BIN_DIR=../../bin/
|
BIN_DIR=../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_cron_task ./
|
COPY ./openim-crontask ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_cron_task"]
|
CMD ["./openim-crontask"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_msg_gateway
|
NAME=openim-rpc-msg_gateway
|
||||||
BIN_DIR=../../bin/
|
BIN_DIR=../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_msg_gateway ./
|
COPY ./openim-rpc-msg_gateway ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_msg_gateway","--port", "10140" "--ws_port", "10001", "--prometheus_port", "20240"]
|
CMD ["./openim-rpc-msg_gateway","--port", "10140" "--ws_port", "10001", "--prometheus_port", "20240"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_msg_transfer
|
NAME=openim-rpc-msg_transfer
|
||||||
BIN_DIR=../../bin/
|
BIN_DIR=../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_msg_transfer ./
|
COPY ./openim-rpc-msg_transfer ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_msg_transfer","--prometheus_port", "21400"]
|
CMD ["./openim-rpc-msg_transfer","--prometheus_port", "21400"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_auth
|
NAME=openim-rpc-auth
|
||||||
BIN_DIR=../../../bin/
|
BIN_DIR=../../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_auth ./
|
COPY ./openim-rpc-auth ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_auth", "--port", "10160"]
|
CMD ["./openim-rpc-auth", "--port", "10160"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_conversation
|
NAME=openim-rpc-conversation
|
||||||
BIN_DIR=../../../bin/
|
BIN_DIR=../../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_conversation ./
|
COPY ./openim-rpc-conversation ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_conversation", "--port", "10230", "--prometheus_port","20230"]
|
CMD ["./openim-rpc-conversation", "--port", "10230", "--prometheus_port","20230"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_friend
|
NAME=openim-rpc-friend
|
||||||
BIN_DIR=../../../bin/
|
BIN_DIR=../../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_friend ./
|
COPY ./openim-rpc-friend ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_friend", "--port", "10120", "--prometheus_port","20120"]
|
CMD ["./openim-rpc-friend", "--port", "10120", "--prometheus_port","20120"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_group
|
NAME=openim-rpc-group
|
||||||
BIN_DIR=../../../bin/
|
BIN_DIR=../../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_group ./
|
COPY ./openim-rpc-group ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_group", "--port", "10150", "--prometheus_port","20150"]
|
CMD ["./openim-rpc-group", "--port", "10150", "--prometheus_port","20150"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_msg
|
NAME=openim-rpc-msg
|
||||||
BIN_DIR=../../../bin/
|
BIN_DIR=../../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_msg ./
|
COPY ./openim-rpc-msg ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_msg", "--port", "10130", "--prometheus_port","20130"]
|
CMD ["./openim-rpc-msg", "--port", "10130", "--prometheus_port","20130"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_third
|
NAME=openim-rpc-third
|
||||||
BIN_DIR=../../../bin/
|
BIN_DIR=../../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_third ./
|
COPY ./openim-rpc-third ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_third", "--port", "10200"]
|
CMD ["./openim-rpc-third", "--port", "10200"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all build run gotool install clean help
|
.PHONY: all build run gotool install clean help
|
||||||
|
|
||||||
NAME=openim_user
|
NAME=openim-rpc-user
|
||||||
BIN_DIR=../../../bin/
|
BIN_DIR=../../../bin/
|
||||||
|
|
||||||
OS:= $(or $(os),linux)
|
OS:= $(or $(os),linux)
|
||||||
|
@ -25,8 +25,8 @@ RUN apt-get install -y vim curl tzdata gawk
|
|||||||
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
COPY ./openim_user ./
|
COPY ./openim-rpc-user ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
CMD ["./openim_user", "--port", "10110"]
|
CMD ["./openim-rpc-user", "--port", "10110"]
|
||||||
|
@ -26,12 +26,12 @@ docs/guide/en-US/cmd/openim/openim_secret_get.md
|
|||||||
docs/guide/en-US/cmd/openim/openim_secret_list.md
|
docs/guide/en-US/cmd/openim/openim_secret_list.md
|
||||||
docs/guide/en-US/cmd/openim/openim_secret_update.md
|
docs/guide/en-US/cmd/openim/openim_secret_update.md
|
||||||
docs/guide/en-US/cmd/openim/openim_set.md
|
docs/guide/en-US/cmd/openim/openim_set.md
|
||||||
docs/guide/en-US/cmd/openim/openim_user.md
|
docs/guide/en-US/cmd/openim/openim-rpc-user.md
|
||||||
docs/guide/en-US/cmd/openim/openim_user_create.md
|
docs/guide/en-US/cmd/openim/openim-rpc-user_create.md
|
||||||
docs/guide/en-US/cmd/openim/openim_user_delete.md
|
docs/guide/en-US/cmd/openim/openim-rpc-user_delete.md
|
||||||
docs/guide/en-US/cmd/openim/openim_user_get.md
|
docs/guide/en-US/cmd/openim/openim-rpc-user_get.md
|
||||||
docs/guide/en-US/cmd/openim/openim_user_list.md
|
docs/guide/en-US/cmd/openim/openim-rpc-user_list.md
|
||||||
docs/guide/en-US/cmd/openim/openim_user_update.md
|
docs/guide/en-US/cmd/openim/openim-rpc-user_update.md
|
||||||
docs/guide/en-US/cmd/openim/openim_validate.md
|
docs/guide/en-US/cmd/openim/openim_validate.md
|
||||||
docs/guide/en-US/cmd/openim/openim_version.md
|
docs/guide/en-US/cmd/openim/openim_version.md
|
||||||
docs/guide/en-US/yaml/openim/openim.yaml
|
docs/guide/en-US/yaml/openim/openim.yaml
|
||||||
@ -44,7 +44,7 @@ docs/guide/en-US/yaml/openim/openim_options.yaml
|
|||||||
docs/guide/en-US/yaml/openim/openim_policy.yaml
|
docs/guide/en-US/yaml/openim/openim_policy.yaml
|
||||||
docs/guide/en-US/yaml/openim/openim_secret.yaml
|
docs/guide/en-US/yaml/openim/openim_secret.yaml
|
||||||
docs/guide/en-US/yaml/openim/openim_set.yaml
|
docs/guide/en-US/yaml/openim/openim_set.yaml
|
||||||
docs/guide/en-US/yaml/openim/openim_user.yaml
|
docs/guide/en-US/yaml/openim/openim-rpc-user.yaml
|
||||||
docs/guide/en-US/yaml/openim/openim_validate.yaml
|
docs/guide/en-US/yaml/openim/openim_validate.yaml
|
||||||
docs/guide/en-US/yaml/openim/openim_version.yaml
|
docs/guide/en-US/yaml/openim/openim_version.yaml
|
||||||
docs/man/man1/iam-apiserver.1
|
docs/man/man1/iam-apiserver.1
|
||||||
|
@ -13,14 +13,20 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
#Include shell font styles and some basic information
|
||||||
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
|
|
||||||
source ./style_info.cfg
|
# Include necessary files
|
||||||
source ./path_info.cfg
|
source "$(dirname "${BASH_SOURCE[0]}")/../scripts/function"
|
||||||
source ./function.sh
|
|
||||||
|
# Include specific functions and variables
|
||||||
|
source "$(dirname "${BASH_SOURCE[0]}")/../scripts/style_info.cfg" \
|
||||||
|
"$OPENIM_ROOT/scripts/path_info.cfg"
|
||||||
|
|
||||||
|
bin_dir="$OPENIM_ROOT/bin"
|
||||||
|
logs_dir="$OPENIM_ROOT/logs"
|
||||||
|
sdk_db_dir="$OPENIM_ROOT/sdk/db/"
|
||||||
|
|
||||||
bin_dir="../bin"
|
|
||||||
logs_dir="../logs"
|
|
||||||
sdk_db_dir="../db/sdk/"
|
|
||||||
#Automatically created when there is no bin, logs folder
|
#Automatically created when there is no bin, logs folder
|
||||||
if [ ! -d $bin_dir ]; then
|
if [ ! -d $bin_dir ]; then
|
||||||
mkdir -p $bin_dir
|
mkdir -p $bin_dir
|
||||||
|
@ -16,21 +16,28 @@
|
|||||||
#fixme This scripts is the total startup scripts
|
#fixme This scripts is the total startup scripts
|
||||||
#fixme The full name of the shell scripts that needs to be started is placed in the need_to_start_server_shell array
|
#fixme The full name of the shell scripts that needs to be started is placed in the need_to_start_server_shell array
|
||||||
|
|
||||||
#fixme Put the shell scripts name here
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
|
|
||||||
|
cd "$OPENIM_ROOT/scripts/"
|
||||||
|
|
||||||
need_to_start_server_shell=(
|
need_to_start_server_shell=(
|
||||||
start_rpc_service.sh
|
"start_rpc_service.sh"
|
||||||
msg_gateway_start.sh
|
"msg_gateway_start.sh"
|
||||||
push_start.sh
|
"push_start.sh"
|
||||||
msg_transfer_start.sh
|
"msg_transfer_start.sh"
|
||||||
)
|
)
|
||||||
time=`date +"%Y-%m-%d %H:%M:%S"`
|
|
||||||
echo "==========================================================">>../logs/openIM.log 2>&1 &
|
time=$(date +"%Y-%m-%d %H:%M:%S")
|
||||||
echo "==========================================================">>../logs/openIM.log 2>&1 &
|
|
||||||
echo "==========================================================">>../logs/openIM.log 2>&1 &
|
for _ in {1..3}; do
|
||||||
echo "==========server start time:${time}===========">>../logs/openIM.log 2>&1 &
|
echo "==========================================================" >> ../logs/openIM.log 2>&1
|
||||||
echo "==========================================================">>../logs/openIM.log 2>&1 &
|
done
|
||||||
echo "==========================================================">>../logs/openIM.log 2>&1 &
|
|
||||||
echo "==========================================================">>../logs/openIM.log 2>&1 &
|
echo "==========server start time:${time}===========" >> ../logs/openIM.log 2>&1
|
||||||
|
|
||||||
|
for _ in {1..3}; do
|
||||||
|
echo "==========================================================" >> ../logs/openIM.log 2>&1
|
||||||
|
done
|
||||||
|
|
||||||
build_pid_array=()
|
build_pid_array=()
|
||||||
idx=0
|
idx=0
|
||||||
|
@ -1,25 +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.
|
|
||||||
|
|
||||||
image=openim/openim_server:v1.0.5
|
|
||||||
rm Open-IM-Server -rf
|
|
||||||
git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive
|
|
||||||
cd Open-IM-Server
|
|
||||||
git checkout tuoyun
|
|
||||||
cd cmd/Open-IM-SDK-Core/
|
|
||||||
git checkout tuoyun
|
|
||||||
cd ../../
|
|
||||||
docker build -t $image . -f deploy.Dockerfile
|
|
||||||
docker push $image
|
|
@ -47,7 +47,7 @@ for i in ${service_port_name[*]}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
#Check launched service process
|
#Check launched service process
|
||||||
check=$(ps aux | grep -w ./${msg_transfer_name} | grep -v grep | wc -l)
|
check=$(ps aux | grep -w ./${openim-msgtransfer} | grep -v grep | wc -l)
|
||||||
if [ $check -eq ${msg_transfer_service_num} ]; then
|
if [ $check -eq ${msg_transfer_service_num} ]; then
|
||||||
echo -e ${GREEN_PREFIX}"none port has been listening,belongs service is openImMsgTransfer"${COLOR_SUFFIX}
|
echo -e ${GREEN_PREFIX}"none port has been listening,belongs service is openImMsgTransfer"${COLOR_SUFFIX}
|
||||||
else
|
else
|
||||||
|
@ -73,10 +73,10 @@ EXCLUDE_TESTS=github.com/OpenIMSDK/Open-IM-Server/test github.com/OpenIMSDK/Open
|
|||||||
# ├── openim-sdk-core/ - main.go
|
# ├── openim-sdk-core/ - main.go
|
||||||
# ├── openim-api
|
# ├── openim-api
|
||||||
# ├── openim_cms_api
|
# ├── openim_cms_api
|
||||||
# ├── openim_cron_task
|
# ├── openim-crontask
|
||||||
# ├── openim_demo
|
# ├── openim_demo
|
||||||
# ├── openim_msg_gateway
|
# ├── openim-rpc-msg_gateway
|
||||||
# ├── openim_msg_transfer
|
# ├── openim-rpc-msg_transfer
|
||||||
# ├── openim-push
|
# ├── openim-push
|
||||||
# ├── rpc/openim_admin_cms/ - main.go
|
# ├── rpc/openim_admin_cms/ - main.go
|
||||||
# └── test/ - main.go
|
# └── test/ - main.go
|
||||||
@ -84,7 +84,7 @@ EXCLUDE_TESTS=github.com/OpenIMSDK/Open-IM-Server/test github.com/OpenIMSDK/Open
|
|||||||
# PLATFORM=linux_amd64
|
# PLATFORM=linux_amd64
|
||||||
# OS=linux
|
# OS=linux
|
||||||
# ARCH=amd64
|
# ARCH=amd64
|
||||||
# BINS=openim-api openim_cms_api openim_cron_task openim_demo openim_msg_gateway openim_msg_transfer openim-push
|
# BINS=openim-api openim_cms_api openim-crontask openim_demo openim-rpc-msg_gateway openim-rpc-msg_transfer openim-push
|
||||||
# BIN_DIR=/root/workspaces/OpenIM/_output/bin
|
# BIN_DIR=/root/workspaces/OpenIM/_output/bin
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
@ -113,8 +113,8 @@ go.build.%:
|
|||||||
@mkdir -p $(BIN_DIR)/platforms/$(OS)/$(ARCH)
|
@mkdir -p $(BIN_DIR)/platforms/$(OS)/$(ARCH)
|
||||||
@if [ "$(COMMAND)" == "openim-sdk-core" ]; then \
|
@if [ "$(COMMAND)" == "openim-sdk-core" ]; then \
|
||||||
echo "===========> DEBUG: Compilation is not yet supported $(COMMAND)"; \
|
echo "===========> DEBUG: Compilation is not yet supported $(COMMAND)"; \
|
||||||
elif [ "$(COMMAND)" == "openim_rpc" ]; then \
|
elif [ "$(COMMAND)" == "openim-rpc" ]; then \
|
||||||
for d in $(wildcard $(ROOT_DIR)/cmd/openim_rpc/*); do \
|
for d in $(wildcard $(ROOT_DIR)/cmd/openim-rpc/*); do \
|
||||||
cd $${d} && CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o \
|
cd $${d} && CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o \
|
||||||
$(BIN_DIR)/platforms/$(OS)/$(ARCH)/$$(basename $${d})$(GO_OUT_EXT) $${d}/main.go; \
|
$(BIN_DIR)/platforms/$(OS)/$(ARCH)/$$(basename $${d})$(GO_OUT_EXT) $${d}/main.go; \
|
||||||
done; \
|
done; \
|
||||||
|
@ -36,9 +36,9 @@ if [ ${#rpc_ports[@]} -ne ${#ws_ports[@]} ]; then
|
|||||||
fi
|
fi
|
||||||
#Check if the service exists
|
#Check if the service exists
|
||||||
#If it is exists,kill this process
|
#If it is exists,kill this process
|
||||||
check=$(ps aux | grep -w ./${msg_gateway_name} | grep -v grep | wc -l)
|
check=$(ps aux | grep -w ./${openim-msggateway} | grep -v grep | wc -l)
|
||||||
if [ $check -ge 1 ]; then
|
if [ $check -ge 1 ]; then
|
||||||
oldPid=$(ps aux | grep -w ./${msg_gateway_name} | grep -v grep | awk '{print $2}')
|
oldPid=$(ps aux | grep -w ./${openim-msggateway} | grep -v grep | awk '{print $2}')
|
||||||
kill -9 ${oldPid}
|
kill -9 ${oldPid}
|
||||||
fi
|
fi
|
||||||
#Waiting port recycling
|
#Waiting port recycling
|
||||||
@ -46,23 +46,23 @@ sleep 1
|
|||||||
cd ${msg_gateway_binary_root}
|
cd ${msg_gateway_binary_root}
|
||||||
for ((i = 0; i < ${#ws_ports[@]}; i++)); do
|
for ((i = 0; i < ${#ws_ports[@]}; i++)); do
|
||||||
echo "==========================start msg_gateway server===========================">>../logs/openIM.log
|
echo "==========================start msg_gateway server===========================">>../logs/openIM.log
|
||||||
nohup ./${msg_gateway_name} --port ${rpc_ports[$i]} --ws_port ${ws_ports[$i]} --prometheus_port ${prome_ports[$i]} >>../logs/openIM.log 2>&1 &
|
nohup ./${openim-msggateway} --port ${rpc_ports[$i]} --ws_port ${ws_ports[$i]} --prometheus_port ${prome_ports[$i]} >>../logs/openIM.log 2>&1 &
|
||||||
done
|
done
|
||||||
|
|
||||||
#Check launched service process
|
#Check launched service process
|
||||||
sleep 3
|
sleep 3
|
||||||
check=$(ps aux | grep -w ./${msg_gateway_name} | grep -v grep | wc -l)
|
check=$(ps aux | grep -w ./${openim-msggateway} | grep -v grep | wc -l)
|
||||||
allPorts=""
|
allPorts=""
|
||||||
if [ $check -ge 1 ]; then
|
if [ $check -ge 1 ]; then
|
||||||
allNewPid=$(ps aux | grep -w ./${msg_gateway_name} | grep -v grep | awk '{print $2}')
|
allNewPid=$(ps aux | grep -w ./${openim-msggateway} | grep -v grep | awk '{print $2}')
|
||||||
for i in $allNewPid; do
|
for i in $allNewPid; do
|
||||||
ports=$(netstat -netulp | grep -w ${i} | awk '{print $4}' | awk -F '[:]' '{print $NF}')
|
ports=$(netstat -netulp | grep -w ${i} | awk '{print $4}' | awk -F '[:]' '{print $NF}')
|
||||||
allPorts=${allPorts}"$ports "
|
allPorts=${allPorts}"$ports "
|
||||||
done
|
done
|
||||||
echo -e ${SKY_BLUE_PREFIX}"SERVICE START SUCCESS"${COLOR_SUFFIX}
|
echo -e ${SKY_BLUE_PREFIX}"SERVICE START SUCCESS"${COLOR_SUFFIX}
|
||||||
echo -e ${SKY_BLUE_PREFIX}"SERVICE_NAME: "${COLOR_SUFFIX}${YELLOW_PREFIX}${msg_gateway_name}${COLOR_SUFFIX}
|
echo -e ${SKY_BLUE_PREFIX}"SERVICE_NAME: "${COLOR_SUFFIX}${YELLOW_PREFIX}${openim-msggateway}${COLOR_SUFFIX}
|
||||||
echo -e ${SKY_BLUE_PREFIX}"PID: "${COLOR_SUFFIX}${YELLOW_PREFIX}${allNewPid}${COLOR_SUFFIX}
|
echo -e ${SKY_BLUE_PREFIX}"PID: "${COLOR_SUFFIX}${YELLOW_PREFIX}${allNewPid}${COLOR_SUFFIX}
|
||||||
echo -e ${SKY_BLUE_PREFIX}"LISTENING_PORT: "${COLOR_SUFFIX}${YELLOW_PREFIX}${allPorts}${COLOR_SUFFIX}
|
echo -e ${SKY_BLUE_PREFIX}"LISTENING_PORT: "${COLOR_SUFFIX}${YELLOW_PREFIX}${allPorts}${COLOR_SUFFIX}
|
||||||
else
|
else
|
||||||
echo -e ${YELLOW_PREFIX}${msg_gateway_name}${COLOR_SUFFIX}${RED_PREFIX}"SERVICE START ERROR, PLEASE CHECK openIM.log"${COLOR_SUFFIX}
|
echo -e ${YELLOW_PREFIX}${openim-msggateway}${COLOR_SUFFIX}${RED_PREFIX}"SERVICE START ERROR, PLEASE CHECK openIM.log"${COLOR_SUFFIX}
|
||||||
fi
|
fi
|
||||||
|
@ -14,21 +14,29 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
#Include shell font styles and some basic information
|
#Include shell font styles and some basic information
|
||||||
source ./style_info.cfg
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
source ./path_info.cfg
|
|
||||||
source ./function.sh
|
#Include shell font styles and some basic information
|
||||||
|
source $OPENIM_ROOT/scripts/style_info.cfg
|
||||||
|
source $OPENIM_ROOT/scripts/path_info.cfg
|
||||||
|
source $OPENIM_ROOT/scripts/function
|
||||||
|
|
||||||
|
bin_dir="$OPENIM_ROOT/bin"
|
||||||
|
logs_dir="$OPENIM_ROOT/logs"
|
||||||
|
sdk_db_dir="$OPENIM_ROOT/sdk/db/"
|
||||||
|
|
||||||
|
cd $OPENIM_ROOT
|
||||||
|
|
||||||
list1=$(cat $config_path | grep messageTransferPrometheusPort | awk -F '[:]' '{print $NF}')
|
list1=$(cat $config_path | grep messageTransferPrometheusPort | awk -F '[:]' '{print $NF}')
|
||||||
list_to_string $list1
|
list_to_string $list1
|
||||||
prome_ports=($ports_array)
|
prome_ports=($ports_array)
|
||||||
|
|
||||||
|
|
||||||
#Check if the service exists
|
#Check if the service exists
|
||||||
#If it is exists,kill this process
|
#If it is exists,kill this process
|
||||||
check=`ps aux | grep -w ./${msg_transfer_name} | grep -v grep| wc -l`
|
check=`ps aux | grep -w ./${openim-msgtransfer} | grep -v grep| wc -l`
|
||||||
if [ $check -ge 1 ]
|
if [ $check -ge 1 ]
|
||||||
then
|
then
|
||||||
oldPid=`ps aux | grep -w ./${msg_transfer_name} | grep -v grep|awk '{print $2}'`
|
oldPid=`ps aux | grep -w ./${openim-msgtransfer} | grep -v grep|awk '{print $2}'`
|
||||||
kill -9 $oldPid
|
kill -9 $oldPid
|
||||||
fi
|
fi
|
||||||
#Waiting port recycling
|
#Waiting port recycling
|
||||||
@ -37,7 +45,7 @@ sleep 1
|
|||||||
cd ${msg_transfer_binary_root}
|
cd ${msg_transfer_binary_root}
|
||||||
for ((i = 0; i < ${msg_transfer_service_num}; i++)); do
|
for ((i = 0; i < ${msg_transfer_service_num}; i++)); do
|
||||||
prome_port=${prome_ports[$i]}
|
prome_port=${prome_ports[$i]}
|
||||||
cmd="nohup ./${msg_transfer_name}"
|
cmd="nohup ./${openim-msgtransfer}"
|
||||||
if [ $prome_port != "" ]; then
|
if [ $prome_port != "" ]; then
|
||||||
cmd="$cmd --prometheus_port $prome_port"
|
cmd="$cmd --prometheus_port $prome_port"
|
||||||
fi
|
fi
|
||||||
@ -46,15 +54,15 @@ for ((i = 0; i < ${msg_transfer_service_num}; i++)); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
#Check launched service process
|
#Check launched service process
|
||||||
check=`ps aux | grep -w ./${msg_transfer_name} | grep -v grep| wc -l`
|
check=`ps aux | grep -w ./${openim-msgtransfer} | grep -v grep| wc -l`
|
||||||
if [ $check -ge 1 ]
|
if [ $check -ge 1 ]
|
||||||
then
|
then
|
||||||
newPid=`ps aux | grep -w ./${msg_transfer_name} | grep -v grep|awk '{print $2}'`
|
newPid=`ps aux | grep -w ./${openim-msgtransfer} | grep -v grep|awk '{print $2}'`
|
||||||
allPorts=""
|
allPorts=""
|
||||||
echo -e ${SKY_BLUE_PREFIX}"SERVICE START SUCCESS "${COLOR_SUFFIX}
|
echo -e ${SKY_BLUE_PREFIX}"SERVICE START SUCCESS "${COLOR_SUFFIX}
|
||||||
echo -e ${SKY_BLUE_PREFIX}"SERVICE_NAME: "${COLOR_SUFFIX}${YELLOW_PREFIX}${msg_transfer_name}${COLOR_SUFFIX}
|
echo -e ${SKY_BLUE_PREFIX}"SERVICE_NAME: "${COLOR_SUFFIX}${YELLOW_PREFIX}${openim-msgtransfer}${COLOR_SUFFIX}
|
||||||
echo -e ${SKY_BLUE_PREFIX}"PID: "${COLOR_SUFFIX}${YELLOW_PREFIX}${newPid}${COLOR_SUFFIX}
|
echo -e ${SKY_BLUE_PREFIX}"PID: "${COLOR_SUFFIX}${YELLOW_PREFIX}${newPid}${COLOR_SUFFIX}
|
||||||
echo -e ${SKY_BLUE_PREFIX}"LISTENING_PORT: "${COLOR_SUFFIX}${YELLOW_PREFIX}${allPorts}${COLOR_SUFFIX}
|
echo -e ${SKY_BLUE_PREFIX}"LISTENING_PORT: "${COLOR_SUFFIX}${YELLOW_PREFIX}${allPorts}${COLOR_SUFFIX}
|
||||||
else
|
else
|
||||||
echo -e ${YELLOW_PREFIX}${msg_transfer_name}${COLOR_SUFFIX}${RED_PREFIX}"SERVICE START ERROR, PLEASE CHECK openIM.log"${COLOR_SUFFIX}
|
echo -e ${YELLOW_PREFIX}${openim-msgtransfer}${COLOR_SUFFIX}${RED_PREFIX}"SERVICE START ERROR, PLEASE CHECK openIM.log"${COLOR_SUFFIX}
|
||||||
fi
|
fi
|
||||||
|
47
scripts/path_info.cfg
Normal file → Executable file
47
scripts/path_info.cfg
Normal file → Executable file
@ -2,6 +2,8 @@
|
|||||||
architecture=$(uname -m)
|
architecture=$(uname -m)
|
||||||
version=$(uname -s | tr '[:upper:]' '[:lower:]')
|
version=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
|
|
||||||
# Define the supported architectures and corresponding bin directories
|
# Define the supported architectures and corresponding bin directories
|
||||||
declare -A supported_architectures=(
|
declare -A supported_architectures=(
|
||||||
["linux-amd64"]="_output/bin/platforms/linux/amd64"
|
["linux-amd64"]="_output/bin/platforms/linux/amd64"
|
||||||
@ -18,40 +20,43 @@ declare -A supported_architectures=(
|
|||||||
|
|
||||||
# Check if the architecture and version are supported
|
# Check if the architecture and version are supported
|
||||||
if [[ -z ${supported_architectures["$version-$architecture"]} ]]; then
|
if [[ -z ${supported_architectures["$version-$architecture"]} ]]; then
|
||||||
echo "Unsupported architecture: $architecture or version: $version"
|
echo "================> Unsupported architecture: $architecture or version: $version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "================> Architecture: $architecture"
|
||||||
|
|
||||||
# Set the BIN_DIR based on the architecture and version
|
# Set the BIN_DIR based on the architecture and version
|
||||||
BIN_DIR=${supported_architectures["$version-$architecture"]}
|
BIN_DIR=${supported_architectures["$version-$architecture"]}
|
||||||
|
|
||||||
echo "BIN_DIR: $BIN_DIR"
|
echo "================> BIN_DIR: $OPENIM_ROOT/$BIN_DIR"
|
||||||
|
|
||||||
|
|
||||||
# Don't put the space between "="
|
# Don't put the space between "="
|
||||||
msg_gateway_name="openim-msggateway"
|
openim_msggateway="openim-msggateway"
|
||||||
msg_gateway_binary_root= $BIN_DIR
|
msg_gateway_binary_root= $OPENIM_ROOT/$BIN_DIR/
|
||||||
msg_gateway_source_root="../cmd/msggateway/"
|
msg_gateway_source_root="../cmd/msggateway/"
|
||||||
|
|
||||||
msg_name="openim_msg"
|
msg_name="openim-rpc-msg"
|
||||||
msg_binary_root=$BIN_DIR
|
msg_binary_root=$OPENIM_ROOT/$BIN_DIR
|
||||||
msg_source_root="../cmd/rpc/msg/"
|
msg_source_root="../cmd/rpc/msg/"
|
||||||
|
|
||||||
push_name="openim-push"
|
push_name="openim-push"
|
||||||
push_binary_root=$BIN_DIR
|
push_binary_root=$OPENIM_ROOT/$BIN_DIR
|
||||||
push_source_root="../cmd/push/"
|
push_source_root="../cmd/push/"
|
||||||
|
|
||||||
msg_transfer_name="openim_msg_transfer"
|
openim_msgtransfer="openim-rpc-msg_transfer"
|
||||||
msg_transfer_binary_root=$BIN_DIR
|
msg_transfer_binary_root=$OPENIM_ROOT/$BIN_DIR
|
||||||
msg_transfer_source_root="../cmd/msgtransfer/"
|
msg_transfer_source_root="../cmd/msgtransfer/"
|
||||||
msg_transfer_service_num=4
|
msg_transfer_service_num=4
|
||||||
|
|
||||||
cron_task_name="openim_cron_task"
|
cron_task_name="openim-crontask"
|
||||||
cron_task_binary_root=$BIN_DIR
|
cron_task_binary_root=$OPENIM_ROOT/$BIN_DIR
|
||||||
cron_task_source_root="../cmd/crontask/"
|
cron_task_source_root="../cmd/crontask/"
|
||||||
|
|
||||||
|
|
||||||
cmd_utils_name="openim_cmd_utils"
|
cmd_utils_name="openim_cmd_utils"
|
||||||
cmd_utils_binary_root=$BIN_DIR
|
cmd_utils_binary_root=$OPENIM_ROOT/$BIN_DIR
|
||||||
cmd_utils_source_root="../cmd/cmduitls/"
|
cmd_utils_source_root="../cmd/cmduitls/"
|
||||||
|
|
||||||
# Global configuration file default dir
|
# Global configuration file default dir
|
||||||
@ -81,15 +86,15 @@ service_names=(
|
|||||||
# api service filename
|
# api service filename
|
||||||
"openim-api"
|
"openim-api"
|
||||||
# rpc service filename
|
# rpc service filename
|
||||||
"openim_user"
|
"openim-rpc-user"
|
||||||
"openim_friend"
|
"openim-rpc-friend"
|
||||||
"openim_group"
|
"openim-rpc-group"
|
||||||
"openim_auth"
|
"openim-rpc-auth"
|
||||||
"openim_conversation"
|
"openim-rpc-conversation"
|
||||||
"openim_third"
|
"openim-rpc-third"
|
||||||
"openim_cron_task"
|
"openim-crontask"
|
||||||
"${msg_gateway_name}"
|
"${openim_msggateway}"
|
||||||
"${msg_transfer_name}"
|
"${openim_msgtransfer}"
|
||||||
"${msg_name}"
|
"${msg_name}"
|
||||||
"${push_name}"
|
"${push_name}"
|
||||||
# "${sdk_server_name}"
|
# "${sdk_server_name}"
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
source ./style_info.cfg
|
source ./style_info.cfg
|
||||||
source ./path_info.cfg
|
source ./path_info.cfg
|
||||||
|
|
||||||
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
|
|
||||||
# Print title
|
# Print title
|
||||||
echo -e "${BOLD_PREFIX}${BLUE_PREFIX}OpenIM Server Start${COLOR_SUFFIX}"
|
echo -e "${BOLD_PREFIX}${BLUE_PREFIX}OpenIM Server Start${COLOR_SUFFIX}"
|
||||||
|
|
||||||
@ -35,6 +37,7 @@ echo -e "${BOLD_PREFIX}${CYAN_PREFIX}Server Start Time: ${time}${COLOR_SUFFIX}"
|
|||||||
# Print section separator
|
# Print section separator
|
||||||
echo -e "${PURPLE_PREFIX}==========================================================${COLOR_SUFFIX}"
|
echo -e "${PURPLE_PREFIX}==========================================================${COLOR_SUFFIX}"
|
||||||
|
|
||||||
|
cd $OPENIM_ROOT/scripts
|
||||||
# FIXME Put the shell script names here
|
# FIXME Put the shell script names here
|
||||||
need_to_start_server_shell=(
|
need_to_start_server_shell=(
|
||||||
start_rpc_service.sh
|
start_rpc_service.sh
|
||||||
@ -65,7 +68,7 @@ for i in ${need_to_start_server_shell[*]}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Print section separator
|
# Print section separator
|
||||||
echo "${PURPLE_PREFIX}==========================================================${COLOR_SUFFIX}"
|
echo -e "${PURPLE_PREFIX}==========================================================${COLOR_SUFFIX}"
|
||||||
|
|
||||||
# Print completion message
|
# Print completion message
|
||||||
echo "${GREEN_PREFIX}${BOLD_PREFIX}OpenIM Server has been started successfully!${COLOR_SUFFIX}"
|
echo -e "${GREEN_PREFIX}${BOLD_PREFIX}OpenIM Server has been started successfully!${COLOR_SUFFIX}"
|
@ -13,11 +13,11 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
|
|
||||||
#Include shell font styles and some basic information
|
#Include shell font styles and some basic information
|
||||||
source ./style_info.cfg
|
source $OPENIM_ROOT/scripts/style_info.cfg
|
||||||
source ./path_info.cfg
|
source $OPENIM_ROOT/scripts/path_info.cfg
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Check if the service exists
|
#Check if the service exists
|
||||||
#If it is exists,kill this process
|
#If it is exists,kill this process
|
||||||
|
@ -13,23 +13,31 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
|
|
||||||
source ./style_info.cfg
|
#Include shell font styles and some basic information
|
||||||
source ./path_info.cfg
|
source $OPENIM_ROOT/scripts/style_info.cfg
|
||||||
source ./function.sh
|
source $OPENIM_ROOT/scripts/path_info.cfg
|
||||||
|
source $OPENIM_ROOT/scripts/function
|
||||||
|
|
||||||
|
bin_dir="$OPENIM_ROOT/bin"
|
||||||
|
logs_dir="$OPENIM_ROOT/logs"
|
||||||
|
sdk_db_dir="$OPENIM_ROOT/sdk/db/"
|
||||||
|
|
||||||
|
cd $OPENIM_ROOT
|
||||||
|
|
||||||
#service filename
|
#service filename
|
||||||
service_filename=(
|
service_filename=(
|
||||||
#api
|
#api
|
||||||
openim-api
|
openim-api
|
||||||
#rpc
|
#rpc
|
||||||
openim_user
|
openim-rpc-user
|
||||||
openim_friend
|
openim-rpc-friend
|
||||||
openim_group
|
openim-rpc-group
|
||||||
openim_auth
|
openim-rpc-auth
|
||||||
${msg_name}
|
${msg_name}
|
||||||
openim_conversation
|
openim-rpc-conversation
|
||||||
openim_third
|
openim-rpc-third
|
||||||
)
|
)
|
||||||
|
|
||||||
#service config port name
|
#service config port name
|
||||||
|
0
scripts/style_info.cfg
Normal file → Executable file
0
scripts/style_info.cfg
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user