Apache Solr open-source search software
SOLR-6467: bin/solr script should direct stdout/stderr when starting in the background to the solr-PORT-console.log in the logs directory instead of bin.
Timothy Potter323426f91455
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex c76c70a39b0..816a0318dbb 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -176,6 +176,9 @@ Bug Fixes* SOLR-6447: bin/solr script needs to pass -DnumShards=1 for boostrapping collection1when starting Solr in cloud mode. (Timothy Potter)+* SOLR-6467: bin/solr script should direct stdout/stderr when starting in the background+ to the solr-PORT-console.log in the logs directory instead of bin. (Timothy Potter)+Other Changes---------------------diff --git a/solr/bin/solr b/solr/bin/solrindex a700a329e46..5fb317232da 100755--- a/solr/bin/solr+++ b/solr/bin/solr@@ -780,7 +780,7 @@ $SOLR_HOST_ARG -Djetty.port=$SOLR_PORT \$JAVA $SOLR_START_OPTS $SOLR_ADDL_ARGS -XX:OnOutOfMemoryError="$SOLR_TIP/bin/oom_solr.sh $SOLR_PORT" -jar start.jarelse# run Solr in the background- nohup $JAVA $SOLR_START_OPTS $SOLR_ADDL_ARGS -XX:OnOutOfMemoryError="$SOLR_TIP/bin/oom_solr.sh $SOLR_PORT" -jar start.jar 1>$SOLR_TIP/bin/solr-$SOLR_PORT-console.log 2>&1 &+ nohup $JAVA $SOLR_START_OPTS $SOLR_ADDL_ARGS -XX:OnOutOfMemoryError="$SOLR_TIP/bin/oom_solr.sh $SOLR_PORT" -jar start.jar 1>$SOLR_SERVER_DIR/logs/solr-$SOLR_PORT-console.log 2>&1 &# no lsof on cygwin thoughif [ "$hasLsof" != "" ]; thendiff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmdindex b64d0ed537e..3c3b237729e 100644--- a/solr/bin/solr.cmd+++ b/solr/bin/solr.cmd@@ -459,7 +459,7 @@ IF "%FG%"=="1" (-Djetty.port=%SOLR_PORT% -Dsolr.solr.home="%SOLR_HOME%" -jar start.jar) ELSE (START "" "%JAVA%" -server -Xss256k %SOLR_JAVA_MEM% %START_OPTS% -DSTOP.PORT=%STOP_PORT% -DSTOP.KEY=%STOP_KEY% ^- -Djetty.port=%SOLR_PORT% -Dsolr.solr.home="%SOLR_HOME%" -jar start.jar > "%SOLR_TIP%\bin\solr-%SOLR_PORT%-console.log"+ -Djetty.port=%SOLR_PORT% -Dsolr.solr.home="%SOLR_HOME%" -jar start.jar > "%SOLR_SERVER_DIR%\logs\solr-%SOLR_PORT%-console.log")goto done