Apache Solr open-source search software
SOLR-17112 - bin/solr script doesn't do ps properly on some systems (#2225)
Vincenzo D'Amoref99935db8248
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 13c3b8d900e..a1516ffa3a8 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -30,6 +30,7 @@ OptimizationsBug Fixes---------------------+Deprecation Removals----------------------@@ -201,6 +202,8 @@ Bug Fixes* SOLR-17120: Fix NullPointerException in UpdateLog.applyOlderUpdates that can occur if there are multiple partialupdates of the same document in separate requests using commitWithin. (Calvin Smith, Christine Poerschke)+* SOLR-17112: bin/solr script doesn't do ps properly on some systems. (Vincenzo D'Amore via Eric Pugh)+Dependency Upgrades---------------------* SOLR-17012: Update Apache Hadoop to 3.3.6 and Apache Curator to 5.5.0 (Kevin Risden)diff --git a/solr/bin/solr b/solr/bin/solrindex 6b8270d66e0..3e64bdc5dc3 100755--- a/solr/bin/solr+++ b/solr/bin/solr@@ -629,7 +629,7 @@ function solr_pid_by_port() {# extract the value of the -Djetty.port parameter from a running Solr processfunction jetty_port() {SOLR_PID="$1"- SOLR_PROC=$(ps -f -p "$SOLR_PID" | grep start\.jar | grep jetty\.port)+ SOLR_PROC=$(ps -fww -p "$SOLR_PID" | grep start\.jar | grep jetty\.port)IFS=' ' read -a proc_args <<< "$SOLR_PROC"for arg in "${proc_args[@]}"do