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-unsubscr...@solr.apache.org

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


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

Reply via email to