Skip to content

Commit

Permalink
SOLR-6653: don't exit with error code if restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Potter committed Dec 5, 2014
1 parent 3070e6e commit a463d48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions solr/bin/solr
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a463d48

Please sign in to comment.