[Bug 218654] textproc/apache-solr do not use lsof in startup script

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 14 13:44:02 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218654

            Bug ID: 218654
           Summary: textproc/apache-solr do not use lsof in startup script
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: bsd at vink.pl
                CC: idefix at fechner.net
             Flags: maintainer-feedback?(idefix at fechner.net)
                CC: idefix at fechner.net

Created attachment 181781
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=181781&action=edit
patch for apache-solr port

Stock apache-solr scripts use lsof during startup to check if Solr started
properly.

When deploying Apache Solr in Jail lsof needs access to /dev/mem which is not
allowed by default. Lack of the access makes the startup script run in the loop
for 3 minutes and then it assumes that it might have succeed. 

Allowing access to /dev/mem makes running Solr in Jail a bit pointless.

Following patch changes the behaviour of Solr startup script to use sockstat
instead of lsof to check if Solr has already started. This also makes the
dependency on lsof obsolete.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list