mirror of https://github.com/apache/lucene.git
SOLR-8145: Fix position of OOM killer script when starting Solr in the background
This commit is contained in:
parent
3cbc48ed30
commit
e1033d9654
|
@ -1420,8 +1420,9 @@ function launch_solr() {
|
||||||
exec "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS -jar start.jar "${SOLR_JETTY_CONFIG[@]}"
|
exec "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS -jar start.jar "${SOLR_JETTY_CONFIG[@]}"
|
||||||
else
|
else
|
||||||
# run Solr in the background
|
# run Solr in the background
|
||||||
nohup "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS -jar start.jar \
|
nohup "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS \
|
||||||
"-XX:OnOutOfMemoryError=$SOLR_TIP/bin/oom_solr.sh $SOLR_PORT $SOLR_LOGS_DIR" "${SOLR_JETTY_CONFIG[@]}" \
|
"-XX:OnOutOfMemoryError=$SOLR_TIP/bin/oom_solr.sh $SOLR_PORT $SOLR_LOGS_DIR" \
|
||||||
|
-jar start.jar "${SOLR_JETTY_CONFIG[@]}" \
|
||||||
1>"$SOLR_LOGS_DIR/solr-$SOLR_PORT-console.log" 2>&1 & echo $! > "$SOLR_PID_DIR/solr-$SOLR_PORT.pid"
|
1>"$SOLR_LOGS_DIR/solr-$SOLR_PORT-console.log" 2>&1 & echo $! > "$SOLR_PID_DIR/solr-$SOLR_PORT.pid"
|
||||||
|
|
||||||
# no lsof on cygwin though
|
# no lsof on cygwin though
|
||||||
|
|
Loading…
Reference in New Issue