Apache Solr open-source search software
SOLR-6653: don't exit with error code if restarting
Timothy Potteraf748a9254ee
diff --git a/solr/bin/solr b/solr/bin/solrindex 82878e9c2b9..09b5ec640b9 100755--- a/solr/bin/solr+++ b/solr/bin/solr@@ -895,8 +895,10 @@ elseif [ "$SOLR_PID" != "" ]; thenstop_solr "$SOLR_SERVER_DIR" "$SOLR_PORT" "$STOP_KEY" "$SOLR_PID"else- echo -e "No process found for Solr node running on port $SOLR_PORT"- exit 1+ if [ "$SCRIPT_CMD" == "stop" ]; then+ echo -e "No process found for Solr node running on port $SOLR_PORT"+ exit 1+ fififi