FreeBSD textproc/elasticsearch6 does not honour /etc/profile
Mark Felder
feld at FreeBSD.org
Sat Mar 31 14:37:59 UTC 2018
On Sat, Mar 31, 2018, at 02:25, Leander Schäfer wrote:
> Hello Mark,
>
> Thanks for your reply. I didn't know about the elasticsearch_env="" - so
> thanksfor that. So my follow-up questions are:
>
> * How would I have to set up elasticsearch_env="", cause according to
> the man of env elasticsearch_env="-S -P
> /usr/local/bin:/usr/local/sbin" wouldn't do the job.
> * What needs to be changed, so elasticsearch's auto detect script
> would work with regular values of PATH? Cause currently the default
> PATH is like: PATH=/sbin:/bin:/usr/sbin:/usr/bin and this won't work
> with an openjdk compiled from ports. Cause this would be my prefered
> way.
>
I guess I am confused about what you are trying to accomplish. When you install ElasticSearch from ports/packages on FreeBSD it automatically installs Java (OpenJDK) from ports/packages and will use it by default. You do not have to specify a which Java to use; simply modifying the configuration file(s) and starting the service should be sufficient.
Are you in a situation where you have multiple versions of Java on the system and you are trying to tell ElasticSearch to use a different one?
> Can I post your replies in the FreeBSD forum? Might be useful for others
> as well ;)
>
> Thanks a lot
>
Certainly
--
Mark Felder
ports-secteam & portmgr member
feld at FreeBSD.org
More information about the freebsd-ports
mailing list