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 2BC9A18226 for ; Thu, 7 Jan 2016 18:52:40 +0000 (UTC) Received: (qmail 643 invoked by uid 500); 7 Jan 2016 18:52:40 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 602 invoked by uid 500); 7 Jan 2016 18:52:40 -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 540 invoked by uid 99); 7 Jan 2016 18:52:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2016 18:52:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E39622C1F57 for ; Thu, 7 Jan 2016 18:52:39 +0000 (UTC) Date: Thu, 7 Jan 2016 18:52:39 +0000 (UTC) From: "Christian Schneider (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4166) Add karaf.lock.exclusive property to prevent a slave instance to start 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-4166?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1508= 7865#comment-15087865 ]=20 Christian Schneider commented on KARAF-4166: -------------------------------------------- A lock is always exclusive. I think the naming might be misleading. > Add karaf.lock.exclusive property to prevent a slave instance to start > ---------------------------------------------------------------------- > > Key: KARAF-4166 > URL: https://issues.apache.org/jira/browse/KARAF-4166 > Project: Karaf > Issue Type: Improvement > Components: karaf-core > Reporter: Jean-Baptiste Onofr=C3=A9 > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 3.0.6, 4.0.4 > > > By default, a Karaf slave instance starts to be able to "pre-install" bun= dle there. > We can enhance the SimpleLockFile (controled a karaf.lock.exclusive prope= rty) like this: > {code} > boolean lock() throws Exception { > boolean locked =3D super.lock(); > if (!locked) throw new RuntimeException("startup aborted"); > return true; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)