Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2018 14:34:59 -0500
From:      Mark Felder <feld@FreeBSD.org>
To:        =?utf-8?Q?Leander=20Sch=C3=A4fer?= <info@netocean.de>, freebsd-ports@freebsd.org
Cc:        freebsd-elastic@freebsd.org
Subject:   Re: FreeBSD textproc/elasticsearch6 does not honour /etc/profile
Message-ID:  <1522438499.493684.1321661104.266F8B86@webmail.messagingengine.com>
In-Reply-To: <f4559b69-d404-e17e-b905-8f9ecff18578@netocean.de>
References:  <f4559b69-d404-e17e-b905-8f9ecff18578@netocean.de>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, Mar 29, 2018, at 05:43, Leander Sch=C3=A4fer wrote:
> Hello,
>=20
> 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-honou=
r-etc-profile.65338/
>=20
> Best regards,
>=20
> 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/nolo=
gin. As far as I can tell this is normal behavior.

If you need to change env for Elastic you can use the elasticsearch_env=3D"=
" in /etc/rc.conf. Any further questions about overcoming issues in your en=
vironment are welcome. We also have a list for elastic now called "freebsd-=
elastic@FreeBSD.org".=20


Hope that helps,


--=20
  Mark Felder
  ports-secteam & portmgr member
  feld@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1522438499.493684.1321661104.266F8B86>