Skip to content

Commit

Permalink
fix bin file starting
Browse files Browse the repository at this point in the history
Signed-off-by: v_wbmqwang(王盟卿) <[email protected]>
  • Loading branch information
v_wbmqwang(王盟卿) committed Feb 28, 2024
1 parent 24b3210 commit 23fce7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ eval action=\$$#
main_class=org.fedai.fate.board.bootstrap.Bootstrap
module=fateboard
version=2.0.0
start_type=background

if [ $action = starting ];then
action=start
start_type=front
elif [ $action = restarting ];then
action=restart
fi
Expand Down Expand Up @@ -252,7 +254,7 @@ start() {
cmd="$JAVA_HOME/bin/java -Dspring.config.location=$configpath/application.properties -Dssh_config_file=$basepath/ssh/ -Xmx2048m -Xms2048m -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError -cp $libpath/*:$basepath/${module}-${version}.jar ${main_class}"
print_info "The command is: $cmd"

if [[ $1 == "front" ]]; then
if [[ ${start_type} == "front" ]]; then
exec $cmd >> ${BOARD_HOME}/logs/bootstrap.${module}.out 2>>${BOARD_HOME}/logs/bootstrap.${module}.err
else
exec $cmd >> ${BOARD_HOME}/logs/bootstrap.${module}.out 2>>${BOARD_HOME}/logs/bootstrap.${module}.err &
Expand Down

0 comments on commit 23fce7d

Please sign in to comment.