[Bug 283270] textproc/apache-solr: Use sockstat instead of lsof in startup script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Dec 2024 20:36:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283270 Bug ID: 283270 Summary: textproc/apache-solr: Use sockstat instead of lsof in startup script Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: mfechner@FreeBSD.org Reporter: freebsd@koenigbj.8bx.de Assignee: mfechner@FreeBSD.org Flags: maintainer-feedback?(mfechner@FreeBSD.org) Created attachment 255790 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=255790&action=edit Patch bin/solr to use sockstat instead of lsof When starting solr, an annoying message appears that lsof is not installed and that the script needs it to determine whether solr is running. If lsof is installed, it does not work immediately because /usr/local/sbin is not in the path. And even if it is, it still does not work because lsof does not work as expected with the parameters used. The dependency on lsof is unnecessary because sockstat is sufficient. This patch lets the script perform the check using sockstat. This patch also adds an extra 'echo' to fix a line break. Before: # service solr start NOTE: Please install lsof as this script needs it to determine if Solr is listening on port 8983. Started Solr server on port 8983 (pid=28172). Happy searching! After: # service solr start Waiting up to 180 seconds to see Solr running on port 8983 [\] Started Solr server on port 8983 (pid=87731). Happy searching! -- You are receiving this mail because: You are the assignee for the bug.