Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 34824 invoked from network); 9 Oct 2010 11:16:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Oct 2010 11:16:58 -0000 Received: (qmail 34091 invoked by uid 500); 9 Oct 2010 11:16:58 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 33686 invoked by uid 500); 9 Oct 2010 11:16:54 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33677 invoked by uid 99); 9 Oct 2010 11:16:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 11:16:53 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 11:16:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o99BGW55010831 for ; Sat, 9 Oct 2010 11:16:32 GMT Message-ID: <25740572.54031286622992167.JavaMail.jira@thor> Date: Sat, 9 Oct 2010 07:16:32 -0400 (EDT) From: "Nick Griffiths (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (DAEMON-177) Allow fail during init MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Allow fail during init ---------------------- Key: DAEMON-177 URL: https://issues.apache.org/jira/browse/DAEMON-177 Project: Commons Daemon Issue Type: Improvement Affects Versions: 1.0.3 Environment: linux Reporter: Nick Griffiths Priority: Minor Fix For: 1.0.4 It would be handy to be able to fail with a nice message during init, such as 'database not available' or 'no config file found' or whatever. At the moment, if you try that during init, you get an IllegalStateException. I've attached a patch which removes this restriction in DaemonLoader, but failing at this stage doesn't stop the c code from calling start. I could work around this in the DaemonLoader, but not sure that is the right approach. I'll have a go at doing a patch for the c-code, but I'm not a confident in my c skills... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.