You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "madrob (via GitHub)" <gi...@apache.org> on 2023/02/03 18:00:39 UTC

[GitHub] [solr] madrob commented on a diff in pull request #1328: SOLR-16645: Extend start script to support ss and netstat as alternatives to lsof

madrob commented on code in PR #1328:
URL: https://github.com/apache/solr/pull/1328#discussion_r1096095124


##########
solr/bin/solr:
##########
@@ -2312,13 +2341,13 @@ function start_solr() {
 	echo ""
     fi
     # no lsof on cygwin though
-    if lsof -v 2>&1 | grep -q revision; then
+    if [ -n "$(get_port_tool)" ]; then
       echo -n "Waiting up to $SOLR_START_WAIT seconds to see Solr running on port $SOLR_PORT"
       # Launch in a subshell to show the spinner
       (loops=0
       while true
       do
-        running=$(lsof -t -PniTCP:$SOLR_PORT -sTCP:LISTEN || :)
+        running=$(check_port_in_use $SOLR_PORT)

Review Comment:
   Yes, if lost doesn't exist we don't want the script to error out.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org