[Bug 217457] net-mgmt/riemann

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 1 18:01:41 UTC 2017


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

            Bug ID: 217457
           Summary: net-mgmt/riemann
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: jeromer at fastmail.net
                CC: dch at skunkwerks.at
                CC: dch at skunkwerks.at
             Flags: maintainer-feedback?(dch at skunkwerks.at)

Created attachment 180399
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180399&action=edit
bug fix

Classpath settings ignored

The classpath setting is ignored when starting up riemann

The following code displays the Java CLASSPATH:

/usr/local/etc/riemann/riemann.config:

  (doseq [line (.getURLs (java.lang.ClassLoader/getSystemClassLoader))] (prn
line))

When launching riemann as the service file currently does (the -X arguments are
removed for brevity) we get the following result:

/usr/local/openjdk8/bin/java -cp a/b:/usr/local/share/java/classes/riemann.jar
-jar /usr/local/share/java/classes/riemann.jar
/usr/local/etc/riemann/riemann.config                                           

  [...]
  #object[java.net.URL 0xeed890d
"file:/usr/local/share/java/classes/riemann.jar"]
  #object[java.net.URL 0x10f477e2 "file:/usr/local/etc/riemann/"]

As we can see, no CLASSPATH support

Riemann should be started like this: 

/usr/local/openjdk8/bin/java -cp a/b:/usr/local/share/java/classes/riemann.jar
riemann.bin start /usr/local/etc/riemann/riemann.config

  [...]
  #object[java.net.URL 0x5b8572df "file:/usr/home/iznogoud/a/b"]
  #object[java.net.URL 0x7aaad0
"file:/usr/local/share/java/classes/riemann.jar"]
  #object[java.net.URL 0xeed890d "file:/usr/local/etc/riemann/"]

Now we have CLASSPATH support :)

A patch with a bug fix is attached

Now in /etc/rc.conf.d/riemmann we can get the following configuration:

  riemann_jarfile="/usr/local/share/java/classes/riemann.jar"
  riemann_java_classpath="${riemann_jarfile}:xxx.jar:yyy.jar"

Controlling the classpath may be of importance to some user especially the ones
who want to use riemann plugins like https://github.com/pyr/riemann-extra/

'hope that helps

:)

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


More information about the freebsd-ports-bugs mailing list