Skip to content

Commit

Permalink
Add dashboard service to start script
Browse files Browse the repository at this point in the history
  • Loading branch information
gibchikafa committed Dec 11, 2024
1 parent 3631167 commit 05e0dc7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/start-dashboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ else
fi

DASHBOARD_JAVA_OPTS=${DASHBOARD_JAVA_OPTS:-""}
(nohup $RUNNER ${DASHBOARD_BASE_JVM_ARGS} ${DASHBOARD_JVM_GC_ARGS} ${JVM_LOG_ARGS} ${DASHBOARD_JAVA_OPTS} -cp ${CLASSPATH} ${MAIN_CLASS} --conf "${DASHBOARD_CONF_FILE}" $@ > ${LOG_OUT_PATH} 2>&1) &
(nohup $RUNNER ${DASHBOARD_BASE_JVM_ARGS} ${DASHBOARD_JVM_GC_ARGS} ${JVM_LOG_ARGS} ${DASHBOARD_JAVA_OPTS} -cp ${CLASSPATH} ${MAIN_CLASS} --conf "${DASHBOARD_CONF_FILE}" $@ 2>&1 | tee -a ${LOG_OUT_PATH}) &
get_pid_file_name dashboard
echo $! >${RSS_PID_DIR}/${pid_file}
9 changes: 9 additions & 0 deletions deploy/kubernetes/docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,14 @@ fi

if [ "$SERVICE_NAME" == "dashboard" ]; then
bash ${basedir}/bin/start-dashboard.sh
while : ; do
pid=$(lsof -i:"$DASHBOARD_PORT" -sTCP:LISTEN)
if [ "$pid" = "" ]; then
break
else
echo "dashboard pid:$pid is alive"
sleep 10
fi
done
fi

0 comments on commit 05e0dc7

Please sign in to comment.