Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1DC8186F6 for ; Thu, 8 Oct 2015 07:53:26 +0000 (UTC) Received: (qmail 33445 invoked by uid 500); 8 Oct 2015 07:53:26 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 33417 invoked by uid 500); 8 Oct 2015 07:53:26 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 33404 invoked by uid 99); 8 Oct 2015 07:53:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2015 07:53:26 +0000 Date: Thu, 8 Oct 2015 07:53:26 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-4005) Different locations for KARAF_HOME and KARAF_BASE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-4005?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-4005: ---------------------------------------- Fix Version/s: 4.0.2 > Different locations for KARAF_HOME and KARAF_BASE > ------------------------------------------------- > > Key: KARAF-4005 > URL: https://issues.apache.org/jira/browse/KARAF-4005 > Project: Karaf > Issue Type: Bug > Components: karaf-core, karaf-instance > Affects Versions: 4.0.1 > Reporter: Markus Rathgeb > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 4.0.2 > > > I would like to change the directories for KARAF_BASE, KARAF_HOME, KARAF_= DATE and KARAF_ETC. > Using separate directories for KARAF_BASE and KARAF_HOME result in error = messages on start and stop of the Karaf container (I shortened the path): > * Unable to update instance pid: Child instance started but no root > registered in /home/maggu2810/.../karaf/home/instances/instance.propertie= s > * Unable to update instance pid: Child instance stopped but no root > registered in /home/maggu2810/.../karaf/home/instances/instance.propertie= s > The class org.apache.karaf.main.InstanceHelper is using: > final boolean isRoot =3D karafHome.equals(karafBase); > If the properties are empty and isRoot is false, this error message and a= n IllegalStateException is thrown. > So, IMHO the intention of that variables is to support using different di= rectories. But this seems to be broken (do not run in a problem at runtime = after a short test, but the code throw the exception). > [http://karaf.922171.n3.nabble.com/Custom-distribution-change-directory-l= ayout-tp4042677p4042691.html] > "The purpose of the current variables is more to be able to adapt to your= machine/administrator constraint: put KARAF_ETC in /etc/karaf, put KARAF_B= ASE in /var/karaf and KARAF_HOME in /home/karaf for instance (by moving the= directories)." > I checked in an example, so you could easily reproduce it:=20 > repo: git@github.com:maggu2810/karaf-custom-distribution.git=20 > branch: dir-layout > Build it and test the custom artifact. -- This message was sent by Atlassian JIRA (v6.3.4#6332)