Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin/java: handle OpenJDK as well (#880)
* plugin/java: handle OpenJDK as well collectd-java requires: * `libjvm.so()(64bit)` * `libjvm.so(SUNWprivate_1.1)(64bit)` On CentOS/RHEL 6.x/7.x these are provided by OpenJDK. OpenJDK stores the JVM files in a bit of a different location: `amd64` has been removed from the path. Thus, ATM the link does not get created properly on such systems. Fix this problem by adding two `exec` resources which both will try to create the needed libjvm symbolic link. They are both smart and check if that file exists before trying to execute. An assumption is added to the code that both of the files cannot exist at the same time. * plugin/java: add missing comma * plugin/java: refactor into human-readable Exec resources * spec/plugin_java: fix directory * plugin/java: specify full paths * plugin/java: ldconfig requires prior resources * plugin/java: fix the order of ln arguments * plugin/java: add missing comma
- Loading branch information