From a463d48e4596ce43886ea62d0277bb5bbd67a03b Mon Sep 17 00:00:00 2001 From: Timothy Potter Date: Fri, 5 Dec 2014 15:24:40 +0000 Subject: [PATCH] SOLR-6653: don't exit with error code if restarting git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_10@1643328 13f79535-47bb-0310-9956-ffa450edef68 --- solr/bin/solr | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solr/bin/solr b/solr/bin/solr index fa6b5cb4da0..62ccc893080 100755 --- a/solr/bin/solr +++ b/solr/bin/solr @@ -740,8 +740,10 @@ else if [ "$SOLR_PID" != "" ]; then stop_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 + fi fi fi