ZEPPELIN-815 don't create a sub shell for the runner

This way it is possible to stop Zeppelin by sending a signal without
having to pass it to the runner. Using exec will launch the runner
in the same process instead, so it receives the original signal directly.
This commit is contained in:
Frank Rosner 2016-04-19 20:04:44 +02:00
parent a6c8b5fcbe
commit 45896d2a9b

View file

@ -87,4 +87,4 @@ if [[ ! -d "${ZEPPELIN_NOTEBOOK_DIR}" ]]; then
$(mkdir -p "${ZEPPELIN_NOTEBOOK_DIR}")
fi
$(exec $ZEPPELIN_RUNNER $JAVA_OPTS -cp $ZEPPELIN_CLASSPATH_OVERRIDES:$CLASSPATH $ZEPPELIN_SERVER "$@")
exec $ZEPPELIN_RUNNER $JAVA_OPTS -cp $ZEPPELIN_CLASSPATH_OVERRIDES:$CLASSPATH $ZEPPELIN_SERVER "$@"