Skip to content

Commit

Permalink
fix: add rpc_listen_port to obproxy startup script (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxsc0529 authored Sep 13, 2024
1 parent 8e931d7 commit be1905f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obproxy-ce/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ echo "$opts"

if [ ! -z $CONFIG_URL ]; then
echo "use config server"
cd /home/admin/obproxy && /home/admin/obproxy/bin/obproxy -p 2883 -l 2884 -n ${APP_NAME} -o observer_sys_password=${PROXYRO_PASSWORD_HASH},obproxy_config_server_url="${CONFIG_URL}",$opts --nodaemon
cd /home/admin/obproxy && /home/admin/obproxy/bin/obproxy -p 2883 -l 2884 -s 2885 -n ${APP_NAME} -o observer_sys_password=${PROXYRO_PASSWORD_HASH},obproxy_config_server_url="${CONFIG_URL}",$opts --nodaemon
elif [ ! -z $RS_LIST ]; then
echo "use rslist"
cd /home/admin/obproxy && /home/admin/obproxy/bin/obproxy -p 2883 -l 2884 -n ${APP_NAME} -c ${OB_CLUSTER} -r "${RS_LIST}" -o observer_sys_password=${PROXYRO_PASSWORD_HASH},$opts --nodaemon
cd /home/admin/obproxy && /home/admin/obproxy/bin/obproxy -p 2883 -l 2884 -s 2885 -n ${APP_NAME} -c ${OB_CLUSTER} -r "${RS_LIST}" -o observer_sys_password=${PROXYRO_PASSWORD_HASH},$opts --nodaemon
else
echo "no config server or rs list"
exit 1
Expand Down

0 comments on commit be1905f

Please sign in to comment.