From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 71DFC1381F3 for ; Fri, 9 Aug 2013 07:04:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA8BFE0A6A; Fri, 9 Aug 2013 07:04:05 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 316A9E086D for ; Fri, 9 Aug 2013 07:04:04 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 7233C20DEE; Fri, 9 Aug 2013 03:04:04 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 09 Aug 2013 03:04:04 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=md80vil2gBEW0eVp7UXden hcRmg=; b=E/+kyKSTs2PSMyvKkVbQ4Fe22FIN27ZHPpoyh3vlDLNjINtysYbtAt /4XRHsR1C7y+BqccHwjl4xX0usOJx6GyhF/YFlldWhcC4oYRqn0t5/wazKArgzY0 6avcD5wAIBO8uCPgLFRkKMnV4h9830HSty18DyHajaRVgSRn4sHO0= X-Sasl-enc: WA48x4WTcpglczzQhpgo4x1AX6/VXt6zmRm8aSw3qq5x 1376031844 Received: from symphony.aura-online.co.uk (unknown [77.99.213.246]) by mail.messagingengine.com (Postfix) with ESMTPA id D5E5D68009A; Fri, 9 Aug 2013 03:04:03 -0400 (EDT) Date: Fri, 9 Aug 2013 08:04:02 +0100 From: James Le Cuirot To: gentoo-java@lists.gentoo.org Cc: ahmedtd@tamu.edu Subject: Re: [gentoo-java] Packaging scm-manager Message-ID: <20130809080402.0dab907c@symphony.aura-online.co.uk> In-Reply-To: <15148336.2obGtzaLKW@basis> References: <15148336.2obGtzaLKW@basis> X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.18; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@lists.gentoo.org Reply-To: gentoo-java@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 30ef583e-f795-44f1-be3f-a2ca3b2785b0 X-Archives-Hash: aa6052ae3c78311225409a1df7c433f8 On Thu, 08 Aug 2013 18:48:24 -0500 Taahir Ahmed wrote: > I'm starting by writing an init script for my existing install > (attached). I've got it mostly working, I think, but I am wondering > if there's a gentoo- approved way of setting a proper value for > JAVA_HOME in the init script. Right now I'm just using a > sub-shell call to java-config to detect the active system vm. That's what the Tomcat init script does and I don't think there's anything wrong with that. It does effectively the same thing as sourcing /etc/profile.d/java-config-2.sh would do but I don't think there's any point in doing that because you will always want the system VM in this case. Simple use /etc/java-config-2/current-system-vm as your JAVA_HOME and you will get the same result. This location is a symlinked directory. I was going to suggest that you install a launcher wrapper in the ebuild using java-pkg_dolauncher but this doesn't allow you to start the process with jsvc because the wrapper is hardcoded to use "java". I remember running into this issue before but decided not to use jsvc in the end anyway. Regards, James