Hey Elastic team,
im using logstash 7.11.0 and ubuntu 14.04
Whenever i run it manually like this
sudo /usr/share/logstash/bin/logstash --path.settings /etc/logstash
logstash running as expected and using bundled JDK, but when i try to run the same command using supervisor service it fails with error message
Using JAVA_HOME defined java: /usr/lib/jvm/default-java
The supervisor service file looks like this:
[program:logstash-client] command = /usr/share/logstash/bin/logstash --path.settings /etc/logstash process_name = %(program_name)s directory = /etc/logstash autostart = true autorestart = true user = root stdout_logfile_maxbytes = 1MB stdout_logfile_backups = 0 stderr_logfile_maxbytes = 1MB stderr_logfile_backups = 0
What can cause this kind of behaviour and how can i overcome it?
Is there any other way to make logstash use bundled JDK and keep JAVA_HOME set?
Thanks in advance