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 EBB09DE85 for ; Wed, 28 Nov 2012 04:59:01 +0000 (UTC) Received: (qmail 64271 invoked by uid 500); 28 Nov 2012 04:59:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 64046 invoked by uid 500); 28 Nov 2012 04:59:00 -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 64003 invoked by uid 99); 28 Nov 2012 04:58:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 04:58:59 +0000 Date: Wed, 28 Nov 2012 04:58:59 +0000 (UTC) From: "Mladen Turk (JIRA)" To: issues@commons.apache.org Message-ID: <233269429.31155.1354078739293.JavaMail.jiratomcat@arcas> In-Reply-To: <983925374.21702.1346413028097.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (DAEMON-258) prunsrv to block until start method returns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DAEMON-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mladen Turk resolved DAEMON-258. -------------------------------- Resolution: Fixed Fix Version/s: 1.0.11 Your latest comment is something different then the original report. Please open a separate issue if you thing there is a problem with service control panel. > prunsrv to block until start method returns > ------------------------------------------- > > Key: DAEMON-258 > URL: https://issues.apache.org/jira/browse/DAEMON-258 > Project: Commons Daemon > Issue Type: Improvement > Components: Procrun > Affects Versions: 1.0.10 > Environment: Windows all versions > Reporter: Ian Beaumont > Priority: Minor > Fix For: 1.0.11 > > Original Estimate: 168h > Remaining Estimate: 168h > > Currently, when starting a windows service from the service control panel based on prunsrv using the JVM.dll the start method is called in a separate thread. Upon calling this thread, the service is marked as "started" in the service control panel. This is confusing, as if something goes wrong in the program start-up sequence (e.g. a database connection is unavailable) then the program will fail to start successfully but the user will not get any indication of this (they have to press "refresh" in the windows services window to see the service failed to start). > It would be better to have an option to report the "service" as "starting" while the "start" method is running and only when the method returns, mark the service as "started" or "stopped" depending on a return code from the "start" method. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira