<div dir="ltr"><div>Hi,</div><div><br></div><div>I think ld.so.conf will not work for me. I think I have multiple Java versions installed.</div><div>I tried to read up on how to implement this in a unit file. It seems extremely<br> complicated to fully understand compared to what I need it for.<br><br></div><div>Would creating a file and setting the environment variable there as explained in the first answer here suffice? <a href="https://unix.stackexchange.com/questions/117467/how-to-permanently-set-environmental-variables">https://unix.stackexchange.com/questions/117467/how-to-permanently-set-environmental-variables</a></div><div><br></div><div>Is this universal amongst distributions using systemd?</div><div><br></div><div>Sincerely</div><div>Niklas Deffner<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-03 15:43 GMT+02:00 Fabien Wernli <span dir="ltr"><<a href="mailto:wernli@in2p3.fr" target="_blank">wernli@in2p3.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Tue, Jul 03, 2018 at 03:34:15PM +0200, T4iga wrote:<br>
> I managed to install syslog-ng-java-3.16 from your repo.<br>
> I set the environment variable manually to my newest java implementation<br>
> which is openjdk-1.8.0 and set up /etc/profile.local (as per<br>
> <a href="https://unix.stackexchange.com/questions/117467/how-to-permanently-set-environmental-variables" rel="noreferrer" target="_blank">https://unix.stackexchange.<wbr>com/questions/117467/how-to-<wbr>permanently-set-environmental-<wbr>variables</a>)<br>
> to supposedly do this every time I log in so I do not have to care about it.<br>
<br>
</span>This file won't be used by systemd when running the service.<br>
You have to add the LD_LIBRARY_PATH either in ld.so.conf or in the systemd unit file.<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/<wbr>mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/<wbr>support/documentation/?<wbr>product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/<wbr>syslog-ng-faq</a><br>
<br>
</div></div></blockquote></div><br></div>