Hi,

I think ld.so.conf will not work for me. I think I have multiple Java versions installed.
I tried to read up on how to implement this in a unit file. It seems extremely
complicated to fully understand compared to what I need it for.

Would creating a file and setting the environment variable there as explained in the first answer here suffice? https://unix.stackexchange.com/questions/117467/how-to-permanently-set-environmental-variables

Is this universal amongst distributions using systemd?

Sincerely
Niklas Deffner

2018-07-03 15:43 GMT+02:00 Fabien Wernli <wernli@in2p3.fr>:
Hi,

On Tue, Jul 03, 2018 at 03:34:15PM +0200, T4iga wrote:
> I managed to install syslog-ng-java-3.16 from your repo.
> I set the environment variable manually to my newest java implementation
> which is openjdk-1.8.0 and set up /etc/profile.local (as per
> https://unix.stackexchange.com/questions/117467/how-to-permanently-set-environmental-variables)
> to supposedly do this every time I log in so I do not have to care about it.

This file won't be used by systemd when running the service.
You have to add the LD_LIBRARY_PATH either in ld.so.conf or in the systemd unit file.

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq