SOLR-6653: don't exit with error code if restarting

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1643317 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy Potter 2014-12-05 15:10:21 +00:00
parent 978aac3184
commit af748a9254
1 changed files with 4 additions and 2 deletions

View File

@ -895,8 +895,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