This is an automated email from the ASF dual-hosted git repository.

tyrantlucifer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 298a45dea [Improve][Zeta] Improve seatunnel-cluster.sh (#4435)
298a45dea is described below

commit 298a45deab6f66104669d800290050dd3f2a2d7b
Author: Guangdong Liu <[email protected]>
AuthorDate: Fri Mar 31 14:56:40 2023 +0800

    [Improve][Zeta] Improve seatunnel-cluster.sh (#4435)
---
 seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh 
b/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh
index 0d97a5f5e..66228d2fa 100755
--- a/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh
+++ b/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel-cluster.sh
@@ -39,6 +39,7 @@ CONF_DIR=${APP_DIR}/config
 APP_JAR=${APP_DIR}/starter/seatunnel-starter.jar
 APP_MAIN="org.apache.seatunnel.core.starter.seatunnel.SeaTunnelServer"
 OUT="${APP_DIR}/logs/seatunnel-server.out"
+HELP=false
 
 if [ -f "${CONF_DIR}/seatunnel-env.sh" ]; then
     . "${CONF_DIR}/seatunnel-env.sh"
@@ -97,8 +98,8 @@ JAVA_OPTS="${JAVA_OPTS} 
${JVM_OPTIONS//\$\{loggc\}/${ST_TMPDIR}}"
 echo "JAVA_OPTS:" ${JAVA_OPTS}
 
 if [[ $DAEMON == true && $HELP == false ]]; then
- touch $SEATUNNEL_HOME/logs/seatunnel-server.out
- java ${JAVA_OPTS} -cp ${CLASS_PATH} ${APP_MAIN} ${args} > "$OUT" 200<&- 2>&1 
< /dev/null &
+ touch $OUT
+ nohup java ${JAVA_OPTS} -cp ${CLASS_PATH} ${APP_MAIN} ${args} > "$OUT" 200<&- 
2>&1 < /dev/null &
  else
  java ${JAVA_OPTS} -cp ${CLASS_PATH} ${APP_MAIN} ${args}
 fi

Reply via email to