Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-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 5F0BF10107 for ; Thu, 3 Oct 2013 09:23:47 +0000 (UTC) Received: (qmail 30898 invoked by uid 500); 3 Oct 2013 09:23:46 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 30690 invoked by uid 500); 3 Oct 2013 09:23:43 -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 30662 invoked by uid 99); 3 Oct 2013 09:23:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Oct 2013 09:23:42 +0000 Date: Thu, 3 Oct 2013 09:23:41 +0000 (UTC) From: =?utf-8?Q?antonio_castell=C3=B3n_=28JIRA=29?= To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DAEMON-306) Service is not restarted if an exception is throw MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 antonio castell=C3=B3n created DAEMON-306: ---------------------------------------- Summary: Service is not restarted if an exception is throw Key: DAEMON-306 URL: https://issues.apache.org/jira/browse/DAEMON-306 Project: Commons Daemon Issue Type: Bug Components: Procrun Affects Versions: 1.0.15 Environment: Java(TM) SE Runtime Environment (build 1.7.0_15-b03) Windows Server 2008 R2 Standard service created and configurated with automatic restart service as: {code} sc failure %SERVICE_NAME% reset=3D 30 actions=3D restart/5000/restart/10000= /restart/60000 {code} Reporter: antonio castell=C3=B3n I have a Java application that internally contains a throws, whe it success= it trace and ends the application using: {code} System.exit(-1); {code} or {code} System.exit(1); {code} The service is not automatically restarted, I suppose that the procrun appl= ication catch correctly the exist from the java application, but it looks t= hat not inform correctly to the Services Manager from the O.S. -- This message was sent by Atlassian JIRA (v6.1#6144)