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

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

colvinco commented on PR #1328:
URL: https://github.com/apache/solr/pull/1328#issuecomment-1531035363

   Hello, sorry I've been away for a while. The outstanding issue is to work out what to do with netstat as the standard arguments on mac differ to linux. https://github.com/apache/solr/pull/1328#discussion_r1096105999
   
   So I guess the options are to either a) not include netstat, b) find common arguments that work on both OSes, or c) check the OS (or the arguments supported by the available netstat) and switch between them. 
   
   Option b sounds like it would be best if it's possible, but I don't have a mac to test with.
   As it's only working out whether a port is in use, returning the pid/process name isn't that important, so maybe just `netstat -nl 2>/dev/null | grep "LISTEN" | grep ":${port} "` would work well enough cross platform? 


-- 
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