Date: Wed, 01 Mar 2017 18:01:40 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 217457] net-mgmt/riemann Message-ID: <bug-217457-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217457 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@FreeBSD.org Reporter: jeromer@fastmail.net CC: dch@skunkwerks.at CC: dch@skunkwerks.at Flags: maintainer-feedback?(dch@skunkwerks.at) Created attachment 180399 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180399&action= =3Dedit 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=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 [...] #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:=20 /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=3D"/usr/local/share/java/classes/riemann.jar" riemann_java_classpath=3D"${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 :) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217457-13>