<div dir="ltr"><div><div>Hi,<br></div><br>That only works for interactive sessions, systemctl does not take environment variables from the shell. If you are sure, that only a single Java version is used on your machine, I&#39;d recommend adding the path to /etc/ld.so.conf or into a separate file under /etc/ld.so.conf.d/<br><br></div>Bye,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Peter Czanik (CzP) &lt;<a href="mailto:peter.czanik@balabit.com" target="_blank">peter.czanik@balabit.com</a>&gt;<br>Balabit / syslog-ng upstream<br><a href="http://czanik.blogs.balabit.com/" target="_blank">http://czanik.blogs.balabit.com/</a><br><a href="https://twitter.com/PCzanik" target="_blank">https://twitter.com/PCzanik</a></div></div>
<br><div class="gmail_quote">On Wed, Jun 1, 2016 at 9:37 AM, Ivan Adji - Krstev <span dir="ltr">&lt;<a href="mailto:akivanradix@gmail.com" target="_blank">akivanradix@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font face="Helvetica, Arial, sans-serif">I have done that ... <br>
      export
LD_LIBRARY_PATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64/jre/lib/amd64/server:$LD_LIBRARY_PATH<br>
      And i put this in ~/.bashrc and bash_profile file.<br>
      and still can&#39;t start syslog-ng from systemctl<br>
      <br>
      Ivan<br>
    </font>
    <div>On 06/01/2016 06:43 AM, Fabien Wernli
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>On Wed, Jun 01, 2016 at 12:29:49AM +0200, Ivan Adji - Krstev wrote:
</pre>
      <blockquote type="cite">
        <pre>And why when i execute like Syslog-NG -Fevd command works and i can see
the logs but when i try to execute like &quot;systemctl start syslog-ng&quot; it
Failed ?
</pre>
      </blockquote>
      <pre>LD_LIBRARY path most likely. read Peter&#39;s blog about that again

______________________________________________________________________________
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a>

</pre>
    </blockquote>
    <br>
  </div>

<br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/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/support/documentation/?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/syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>