Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2018 09:25:22 +0200
From:      =?UTF-8?Q?Leander_Sch=c3=a4fer?= <info@netocean.de>
To:        Mark Felder <feld@FreeBSD.org>, freebsd-ports@freebsd.org
Subject:   Re: FreeBSD textproc/elasticsearch6 does not honour /etc/profile
Message-ID:  <0d14ff1a-9ea9-2dc9-4ced-bc2b0d316e9d@netocean.de>
In-Reply-To: <1522438499.493684.1321661104.266F8B86@webmail.messagingengine.com>
References:  <f4559b69-d404-e17e-b905-8f9ecff18578@netocean.de> <1522438499.493684.1321661104.266F8B86@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Can I post your replies in the FreeBSD forum? Might be useful for others
as well ;)

Thanks a lot

Best regards,
Leander


Am 30.03.18 um 21:34 schrieb Mark Felder:
>
> On Thu, Mar 29, 2018, at 05:43, Leander Schäfer wrote:
>> Hello,
>>
>> it looks like textproc/elasticsearch6 does not honour /etc/profile?
>> Please have a look for detailed description and reproduction of the
>> issue:
>> https://forums.freebsd.org/threads/textproc-elasticsearch6-does-not-honour-etc-profile.65338/
>>
>> Best regards,
>>
>> Leander S.
> I'm pretty sure this is not supposed to work. /etc/profile is used by sh(1) and would only be read during a login shell. The FreeBSD rc subsystem uses "su -m" when running processes as a specific user, not "su -l". The "su -l" would fail because ElasticSearch's user has a default shell of /sbin/nologin. As far as I can tell this is normal behavior.
>
> If you need to change env for Elastic you can use the elasticsearch_env="" in /etc/rc.conf. Any further questions about overcoming issues in your environment are welcome. We also have a list for elastic now called "freebsd-elastic@FreeBSD.org". 
>
>
> Hope that helps,
>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0d14ff1a-9ea9-2dc9-4ced-bc2b0d316e9d>