Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45FB4117A6 for ; Tue, 24 Jun 2014 22:26:25 +0000 (UTC) Received: (qmail 23395 invoked by uid 500); 24 Jun 2014 22:26:25 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 23223 invoked by uid 500); 24 Jun 2014 22:26:25 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 23211 invoked by uid 99); 24 Jun 2014 22:26:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 22:26:25 +0000 Date: Tue, 24 Jun 2014 22:26:25 +0000 (UTC) From: "Adam Hooper (JIRA)" To: commits@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (APLO-358) Exit on error during startup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Adam Hooper created APLO-358: -------------------------------- Summary: Exit on error during startup Key: APLO-358 URL: https://issues.apache.org/jira/browse/APLO-358 Project: ActiveMQ Apollo Issue Type: Improvement Components: apollo-broker, apollo-cli, apollo-util Affects Versions: 1.6 Environment: Ubuntu 14.04 Reporter: Adam Hooper Our download-and-run program is built of multiple concurrent processes; one of these is Apollo. We have a parent Java process that invokes Apollo. Our users won't understand Apollo's log messages. If Apollo encounters an error during startup (such as "java.net.BindException: Address already in use" or "java.io.IOException: File './data/lock' could not be locked."), we can assume it isn't going to start up. We would love Apollo to exit with a non-zero status code in that case, so we can detect the error and report it to the user. Is this reasonable? I can think of two ways of attacking this issue that would work well for us: 1) Exit with non-zero status code when any component encounters an error during startup; OR 2) Exit with a non-zero status code when any component encounters an error and a special command-line flag has been set. -- This message was sent by Atlassian JIRA (v6.2#6252)