Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 23390 invoked from network); 27 Jun 2007 15:34:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2007 15:34:16 -0000 Received: (qmail 61399 invoked by uid 500); 27 Jun 2007 15:34:16 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 61362 invoked by uid 500); 27 Jun 2007 15:34:16 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 61348 invoked by uid 99); 27 Jun 2007 15:34:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2007 08:34:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.43.132] (HELO sca-es-mail-1.sun.com) (192.18.43.132) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2007 08:34:12 -0700 Received: from fe-sfbay-09.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id l5RFXnTS005036 for ; Wed, 27 Jun 2007 08:33:51 -0700 (PDT) Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JKA00501WEGOT00@fe-sfbay-09.sun.com> (original mail from Martin.Zaun@Sun.COM) for derby-user@db.apache.org; Wed, 27 Jun 2007 08:33:49 -0700 (PDT) Received: from [192.168.0.5] ([64.142.85.113]) by fe-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JKA00LBRWKDB140@fe-sfbay-09.sun.com> for derby-user@db.apache.org; Wed, 27 Jun 2007 08:33:49 -0700 (PDT) Date: Wed, 27 Jun 2007 08:32:16 -0700 From: Martin Zaun Subject: Re: How to shutdown with authentication In-reply-to: <468208E6.9050001@Sun.COM> Sender: Martin.Zaun@Sun.COM To: Derby Discussion Message-id: <46828300.2060506@sun.com> Organization: Sun Microsystems, Inc. MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en References: <200706261042.02676.sitongia@ucar.edu> <468208E6.9050001@Sun.COM> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.13) Gecko/20060414 X-Virus-Checked: Checked by ClamAV on apache.org There's been a discussion of this topic on derby-dev. Subject: NetworkServerControl shutdown w/ authentication failing? My summary so far: - 'NetworkServerControl shutdown' (stopNetworkServer) doesn't support authentication yet (warning during datbase shutdown); yet, it shuts down the server process (may need to run recovery upon next database boot). - Shutdown from ij (shutdown property in URL), for example, connect 'jdbc:derby://localhost:1527/;shutdown=true;user=MARTIN;password=martinspassword'; seems to support authentication and properly shuts down the engine but keeps the server process running. We're about to open a JIRA on this for further discussion. Martin John Embretsen wrote: > Leonard Sitongia wrote: > >> Hello, >> >> I've enabled user connection authentication in my standalone network >> derby server on Linux. I think that one of the manuals said that in >> this case the stopNetworkServer should be configured to use >> authentication. But, I don't see how do to this. Any, searching the >> documents mailing list seems to suggest that it cannot be done, but >> needs to be done in order to make the startup cleaner the next time. > > > The only place I know of in the manuals that covers this is in the Derby > Server and Administration guide, in the section called "Shutting down > the Network Server", which says: > > "If user authentication is enabled, you must explicitly shut down the > database before shutting down the Network Server by specifying a valid > Derby user name and password." > > This means that one should shut down the database from a Java app or ij > before running the server shutdown command in order to do a clean shutdown. > > If you have a reference to a place in the manuals saying that the > stopNetworkServer script should be configured in the case of user > authentication, please let me know. > > Thanks, > >