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 15D0917643 for ; Fri, 8 Jan 2016 09:12:40 +0000 (UTC) Received: (qmail 1318 invoked by uid 500); 8 Jan 2016 09:12:40 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 1288 invoked by uid 500); 8 Jan 2016 09:12: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 1232 invoked by uid 99); 8 Jan 2016 09:12:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2016 09:12:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D2B712C14F4 for ; Fri, 8 Jan 2016 09:12:39 +0000 (UTC) Date: Fri, 8 Jan 2016 09:12:39 +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-4166) Add karaf.lock.slave.block 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.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-4166: ---------------------------------------- Summary: Add karaf.lock.slave.block property to prevent a slave instanc= e to start (was: Add karaf.lock.exclusive property to prevent a slave inst= ance to start) > Add karaf.lock.slave.block 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)