FreeBSD textproc/elasticsearch6 does not honour /etc/profile
Mark Felder
feld at FreeBSD.org
Fri Mar 30 19:35:00 UTC 2018
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 at FreeBSD.org".
Hope that helps,
--
Mark Felder
ports-secteam & portmgr member
feld at FreeBSD.org
More information about the freebsd-elastic
mailing list