You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2023/07/31 16:46:25 UTC

[solr] 02/02: complete backport of SOLR-16883

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

epugh pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git

commit a6e6730fba0d4e764fca8afa36ca5a4a44bbffee
Author: Eric Pugh <ep...@opensourceconnections.com>
AuthorDate: Mon Jul 31 12:44:45 2023 -0400

    complete backport of SOLR-16883
---
 solr/bin/solr     | 2 +-
 solr/bin/solr.cmd | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/solr/bin/solr b/solr/bin/solr
index 44408103603..79b1c6c8046 100644
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -342,7 +342,7 @@ function print_usage() {
   if [ -z "${CMD:-}" ]; then
     echo ""
     echo "Usage: solr COMMAND OPTIONS"
-    echo "       where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_core, create_collection, delete, version, zk, auth, assert, config, export, api, package"
+    echo "       where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_core, create_collection, delete, version, zk, auth, assert, config, export, api, package, postlogs"
     echo ""
     echo "  Standalone server example (start Solr running in the background on port 8984):"
     echo ""
diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index a75f882f407..bfdeab06c92 100755
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -236,6 +236,7 @@ IF "%1"=="assert" goto run_solrcli
 IF "%1"=="export" goto run_solrcli
 IF "%1"=="package" goto run_solrcli
 IF "%1"=="api" goto run_solrcli
+IF "%1"=="postlogs" goto run_solrcli
 
 REM Only allow the command to be the first argument, assume start if not supplied
 IF "%1"=="start" goto set_script_cmd
@@ -307,12 +308,13 @@ IF "%SCRIPT_CMD%"=="delete" goto delete_usage
 IF  "%SCRIPT_CMD%"=="zk" goto zk_usage
 IF "%SCRIPT_CMD%"=="auth" goto auth_usage
 IF "%SCRIPT_CMD%"=="status" goto status_usage
+IF "%SCRIPT_CMD%"=="postlogs" goto run_solrcli
 goto done
 
 :script_usage
 @echo.
 @echo Usage: solr COMMAND OPTIONS
-@echo        where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_core, create_collection, delete, version, zk, auth, assert, config, export, api, package
+@echo        where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_core, create_collection, delete, version, zk, auth, assert, config, export, api, package, postlogs
 @echo.
 @echo   Standalone server example (start Solr running in the background on port 8984):
 @echo.