Re: FreeBSD textproc/elasticsearch6 does not honour /etc/profile
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 f...@freebsd.org ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: FreeBSD textproc/elasticsearch6 does not honour /etc/profile
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-elas...@freebsd.org". > > > Hope that helps, > > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: FreeBSD textproc/elasticsearch6 does not honour /etc/profile
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-elas...@freebsd.org". Hope that helps, -- Mark Felder ports-secteam & portmgr member f...@freebsd.org ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
FreeBSD textproc/elasticsearch6 does not honour /etc/profile
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. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"