Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 93399 invoked from network); 26 Aug 2009 19:48:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Aug 2009 19:48:23 -0000 Received: (qmail 92944 invoked by uid 500); 26 Aug 2009 19:48:23 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 92901 invoked by uid 500); 26 Aug 2009 19:48:23 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 92891 invoked by uid 99); 26 Aug 2009 19:48:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2009 19:48:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2009 19:48:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4C7B2234C044 for ; Wed, 26 Aug 2009 12:47:59 -0700 (PDT) Message-ID: <1400874841.1251316079301.JavaMail.jira@brutus> Date: Wed, 26 Aug 2009 12:47:59 -0700 (PDT) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Subject: [jira] Closed: (FELIX-1478) Add shutdown hook to launcher to cleanly shutdown the framework if the process is killed In-Reply-To: <1042487385.1250101634898.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard S. Hall closed FELIX-1478. ---------------------------------- Resolution: Fixed Added shutdown hook to launcher which can be turned off with "felix.shutdown.hook=false". > Add shutdown hook to launcher to cleanly shutdown the framework if the process is killed > ---------------------------------------------------------------------------------------- > > Key: FELIX-1478 > URL: https://issues.apache.org/jira/browse/FELIX-1478 > Project: Felix > Issue Type: New Feature > Components: Main > Affects Versions: felix-1.8.1 > Reporter: Richard S. Hall > Assignee: Richard S. Hall > Priority: Minor > Fix For: felix-2.0.0 > > > As it stands currently (and dating back to the Oscar days), if someone does a control-C, then the framework process just dies and there is no attempt to shutdown cleanly. If we add a shutdown hook, then we can cleanly shutdown the framework. > I am not sure if this would necessarily impact anyone who directly uses our launcher to launch the framework. I imagine there could possibly be an issue if someone uses our launcher, but registers their own shutdown hook. We also have the potential issue of a deadlock or some situation where we cannot exit, which could prevent the VM from exiting. > Any one have any thoughts? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.