Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D703E626 for ; Thu, 27 Dec 2012 23:57:28 +0000 (UTC) Received: (qmail 44013 invoked by uid 500); 27 Dec 2012 23:57:26 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 43931 invoked by uid 500); 27 Dec 2012 23:57:26 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 43923 invoked by uid 99); 27 Dec 2012 23:57:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2012 23:57:26 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [65.61.218.73] (HELO dpmailmta04.doteasy.com) (65.61.218.73) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2012 23:57:19 +0000 Received: from dpmail02.doteasy.com ([192.168.101.2]) by dpmailrp03.doteasy.com (8.13.8/8.13.8/Debian-3) with ESMTP id qBRNuwME005507 for ; Thu, 27 Dec 2012 15:56:58 -0800 Received: from adsl-99-120-41-158.dsl.lsan03.sbcglobal.net [99.120.41.158] by dpmail02.doteasy.com with SMTP; Thu, 27 Dec 2012 15:56:40 -0800 Message-ID: <50DCE037.1070501@fanello.net> Date: Thu, 27 Dec 2012 15:56:39 -0800 From: Adam User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 MIME-Version: 1.0 To: user@commons.apache.org Subject: [daemon] procrun ignores shutdown Content-Type: multipart/alternative; boundary="------------080705060207000603050707" X-Bayes-Prob: 0.9999 (Score 4, tokens from: @@RPTN, default) X-Spam-Score: 4.50 (****) [Hold at 5.00] FH_HELO_EQ_D_D_D_D,HELO_DYNAMIC_DHCP,HELO_DYNAMIC_HCC,HELO_DYNAMIC_IPADDR,HTML_MESSAGE,RDNS_NONE,TO_NO_BRKTS_NORDNS,Bayes(0.9999:4.0) X-CanIt-Geo: No geolocation information available for 192.168.101.2 X-CanItPRO-Stream: base:default X-Canit-Stats-ID: 07IELUWNH - 2e0462e7221f - 20121227 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.168.101.83 X-Originating-IP: 192.168.101.83 X-Virus-Checked: Checked by ClamAV on apache.org --------------080705060207000603050707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit This seems like a massive bug in a mature product, which makes me think I must be missing something. Running tomcat7.exe (which is Apache Daemon procrun 1.0.10), Tomcat can be stopped just fine from Windows Services or command-line (net stop or sc stop), but when the Windows O/S shuts down, the service isn't told to stop. The O/S just ends up killing it. This bug appears to be related to the fact that procman isn't registered to be notified of shutdown, as shown by a query of the service: sc query myservice SERVICE_NAME: myservice TYPE : 10 WIN32_OWN_PROCESS STATE : 4 RUNNING (STOPPABLE,NOT_PAUSABLE,*IGNORES_SHUTDOWN*) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 I looked at what was fixed in 1.0.11, and searched the issues database and Google - can't find any talk about this gaping hole in functionality. _______________________________________________________ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com --------------080705060207000603050707--