@@ -7,7 +7,7 @@ WAIT_FOR_PASSWORD_SET_ATTEMPTS=300
77WAIT_FOR_SERVICE_READY_ATTEMPTS=300
88WAIT_INTERVAL_SECONDS=1
99
10- CONFIG_FILE=" /etc/oceanbase /seekdb.cnf"
10+ CONFIG_FILE=" /etc/seekdb /seekdb.cnf"
1111
1212# Replace values in config file with environment variables if they are set
1313
@@ -36,12 +36,12 @@ if [ -n "$LOG_DISK_SIZE" ]; then
3636fi
3737
3838# Execute the main process
39- /usr/libexec/oceanbase /scripts/seekdb_systemd_start 2> /dev/null
39+ /usr/libexec/seekdb /scripts/seekdb_systemd_start 2> /dev/null
4040
41- OBSERVER_CONFIG_FILE =" /var/lib/oceanbase/etc/observer .config.bin"
41+ SEEKDB_CONFIG_FILE =" /var/lib/oceanbase/etc/seekdb .config.bin"
4242for i in $( seq 1 $WAIT_FOR_CONFIG_FILE_ATTEMPTS ) ; do
43- if [ -f " $OBSERVER_CONFIG_FILE " ]; then
44- echo " File '$OBSERVER_CONFIG_FILE ' found on attempt #$i ."
43+ if [ -f " $SEEKDB_CONFIG_FILE " ]; then
44+ echo " File '$SEEKDB_CONFIG_FILE ' found on attempt #$i ."
4545 break
4646 fi
4747 if [ $(( i % 10 )) -eq 0 ]; then
@@ -56,7 +56,7 @@ INITIALIZED_FLAG="/var/lib/oceanbase/.initialized"
5656if [ ! -f " $INITIALIZED_FLAG " ]; then
5757 # change password using obshell
5858 for i in $( seq 1 $WAIT_FOR_PASSWORD_SET_ATTEMPTS ) ; do
59- curl -X PUT " http://127.0.0.1:2886/api/v1/observer /user/root/password" -d " {\" password\" :\" $ROOT_PASSWORD \" }" --unix-socket " /var/lib/oceanbase/run/obshell.sock"
59+ curl -X PUT " http://127.0.0.1:2886/api/v1/seekdb /user/root/password" -d " {\" password\" :\" $ROOT_PASSWORD \" }" --unix-socket " /var/lib/oceanbase/run/obshell.sock"
6060 EXIT_STATUS=$?
6161 if [ $EXIT_STATUS -eq 0 ]; then
6262 echo " Command succeeded on attempt #$i ."
@@ -127,10 +127,11 @@ if [ $# -gt 0 ]; then
127127 exit $?
128128fi
129129
130- echo " Starting observer health check..."
131- while pgrep observer > /dev/null; do
130+ echo " Seekdb started"
131+ echo " Start seekdb health check loop"
132+ while pgrep seekdb > /dev/null; do
132133 sleep 5
133134done
134135
135- echo " Observer process not found. Exiting."
136+ echo " Seekdb process not found. Exiting."
136137exit 1
0 commit comments