From owner-freebsd-ports@freebsd.org Sat Mar 31 14:37:59 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2152F65AD6 for ; Sat, 31 Mar 2018 14:37:58 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9D7DD8643B for ; Sat, 31 Mar 2018 14:37:58 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B2DFF2178C; Sat, 31 Mar 2018 10:37:57 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute3.internal (MEProxy); Sat, 31 Mar 2018 10:37:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5kZtzW 2qncPpWLeo1NNfSkvk10dUMHN6jslvtL63piI=; b=Py0WWi184fwdpL9tpAxJcj MlKb3tkLJEPkPwqm1mX6YpFot5rzqFOOBdqqpEdGE3ydVysKpnuCE8BujXYXDn5D Toz8t2dgIaDt9Kz19R1ieYmvc7kxpl9ZVuud0DrKHxoFdjQ6AkhWZfondBbe6apB O8UFmehLWQp+erXB6k8ZdAiwojlK+TMk0hSPTZcya1BOUsmRGw9Ca0wALQnFenlM TDDDutlDggLxDw8sBPnA3EUE9WL0bob5/Roa3MJn6rli1lH7OqG8a3yxo5GoBGlB VclCqKTgPxpUlLEG/u4qYKrxi2GB/nF4avK8u/vO8NzmPd8wcmnL9ovE+nSnZF5A == X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 8EEA6BA43B; Sat, 31 Mar 2018 10:37:57 -0400 (EDT) Message-Id: <1522507077.1982210.1322220024.02F8B03C@webmail.messagingengine.com> From: Mark Felder To: =?utf-8?Q?Leander=20Sch=C3=A4fer?= , freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-bb419338 Subject: Re: FreeBSD textproc/elasticsearch6 does not honour /etc/profile References: <1522438499.493684.1321661104.266F8B86@webmail.messagingengine.com> <0d14ff1a-9ea9-2dc9-4ced-bc2b0d316e9d@netocean.de> In-Reply-To: <0d14ff1a-9ea9-2dc9-4ced-bc2b0d316e9d@netocean.de> Date: Sat, 31 Mar 2018 09:37:57 -0500 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Mar 2018 14:37:59 -0000 On Sat, Mar 31, 2018, at 02:25, Leander Sch=C3=A4fer wrote: > Hello Mark, >=20 > Thanks for your reply. I didn't know about the elasticsearch_env=3D"" - so > thanksfor that. So my follow-up questions are: >=20 > * How would I have to set up elasticsearch_env=3D"", cause according to > the man of env elasticsearch_env=3D"-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=3D/sbin:/bin:/usr/sbin:/usr/bin and this won't work > with an openjdk compiled from ports. Cause this would be my prefered > way. >=20 I guess I am confused about what you are trying to accomplish. When you ins= tall 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 fil= e(s) and starting the service should be sufficient. Are you in a situation where you have multiple versions of Java on the syst= em 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 ;) >=20 > Thanks a lot >=20 Certainly --=20 Mark Felder ports-secteam & portmgr member feld@FreeBSD.org