Skip to content

Commit

Permalink
Generate pid file under /bin in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Dec 18, 2023
1 parent 20eb9a9 commit 63c5db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eventmesh-runtime/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ else
exit 9;
fi

echo "EventMesh using Java location: $JAVA"
echo "EventMesh using Java version: $JAVA_VERSION, path: $JAVA"

EVENTMESH_HOME=$(cd "$(dirname "$0")/.." && pwd)
export EVENTMESH_HOME
Expand Down Expand Up @@ -195,6 +195,6 @@ if [ $DOCKER ]; then
$JAVA $JAVA_OPT -classpath ${EVENTMESH_HOME}/conf:${EVENTMESH_HOME}/apps/*:${EVENTMESH_HOME}/lib/* $EVENTMESH_MAIN >> ${EVENTMESH_LOG_HOME}/eventmesh.out
else
$JAVA $JAVA_OPT -classpath ${EVENTMESH_HOME}/conf:${EVENTMESH_HOME}/apps/*:${EVENTMESH_HOME}/lib/* $EVENTMESH_MAIN >> ${EVENTMESH_LOG_HOME}/eventmesh.out 2>&1 &
echo $!>pid.file
echo $!>${EVENTMESH_HOME}/bin/pid.file
fi
exit 0

0 comments on commit 63c5db3

Please sign in to comment.