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 BC1D77100 for ; Thu, 3 Nov 2011 20:35:56 +0000 (UTC) Received: (qmail 7028 invoked by uid 500); 3 Nov 2011 20:35:56 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 6945 invoked by uid 500); 3 Nov 2011 20:35:56 -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 6936 invoked by uid 99); 3 Nov 2011 20:35:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 20:35:56 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 20:35:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BDA53330739 for ; Thu, 3 Nov 2011 20:35:32 +0000 (UTC) Date: Thu, 3 Nov 2011 20:35:32 +0000 (UTC) From: "Mladen Turk (Commented) (JIRA)" To: issues@commons.apache.org Message-ID: <2009003012.57267.1320352532778.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <12148352.244311296150523397.JavaMail.jira@thor> Subject: [jira] [Commented] (DAEMON-195) "net stop serviceName" prints "Error 109: The pipe has been ended." Stopping via Windows Control Panel hangs. 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/DAEMON-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143511#comment-13143511 ] Mladen Turk commented on DAEMON-195: ------------------------------------ This will always happen if the stop method calls System.exit() There is no way to bypass that. On Tomcat you can use --StopMode java and it'll shutdown cleanly. Think we will need to make that as default (at least on Tomcat) > "net stop serviceName" prints "Error 109: The pipe has been ended." Stopping via Windows Control Panel hangs. > ------------------------------------------------------------------------------------------------------------- > > Key: DAEMON-195 > URL: https://issues.apache.org/jira/browse/DAEMON-195 > Project: Commons Daemon > Issue Type: Bug > Components: Procrun > Affects Versions: 1.0.5 > Environment: WinXP SP3 32-bit > Reporter: Konstantin Kolinko > Priority: Minor > > This issue was reported for Tomcat 7.0.6: https://issues.apache.org/bugzilla/show_bug.cgi?id=50673 > To reproduce: > 1. Install apache-tomcat-7.0.6.exe I am installing with default options. I am not starting Tomcat after installation. > 2. Launch the command prompt window. > 3. The following command succeeds: > net stop Tomcat7 > It prints two localized messages that can be translated as > The "Apache Tomcat 7" service is being started. > The "Apache Tomcat 7" service started successfully.p > 4. The following command apparently fails, but actually it succeeds: > net stop Tomcat7 > It prints two localized messages that are, citing from BZ 50673: > System error 109. > The pipe has been ended. > Note that "The service being stopped" message is not printed. > 5. Repeating the command shows that the service has been stopped: > net stop Tomcat7 > The "Apache Tomcat 7" service has not been started. > The commons-daemon..log contains only the following four lines when stopping the service with Debug logging enabled: > [2011-01-27 20:18:59] [info] ( :0 ) Stopping service... > [2011-01-27 20:18:59] [debug] ( javajni.c:844 ) argv[0] = stop > [2011-01-27 20:18:59] [debug] ( javajni.c:891 ) Java Worker thread started org/apache/catalina/startup/Bootstrap:main > [2011-01-27 20:19:00] [debug] ( prunsrv.c:871 ) Waiting for java jni stop worker to finish... > Stopping the service with Stop button in prunmgr app succeeds without any messages. > Stopping the service from the Services list in the Control Panel quickly goes to 50% of progress but then continues to wait forever, without any changes on the screen. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira