Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 63041 invoked from network); 28 Nov 2007 16:10:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2007 16:10:47 -0000 Received: (qmail 74637 invoked by uid 500); 28 Nov 2007 16:10:23 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 74617 invoked by uid 500); 28 Nov 2007 16:10:23 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 74606 invoked by uid 99); 28 Nov 2007 16:10:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 08:10:23 -0800 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rc46fi@googlemail.com designates 209.85.146.177 as permitted sender) Received: from [209.85.146.177] (HELO wa-out-1112.google.com) (209.85.146.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 16:10:00 +0000 Received: by wa-out-1112.google.com with SMTP id m38so1782216waf for ; Wed, 28 Nov 2007 08:10:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4RfKPZCiyufTDnSGDepCoHDh5K0gCVtBpa4pL6xVnAc=; b=YgBH79O4AOWT++ahPmMnb4sM8FwVdsye9iaQUh2u4RDPbfEXs9FKDHCFmpKxo8uGEyFPqkhTSsg6CKnxZ2TgYSqB8H4btpuPx+Z01slJ9zEcmW0f9hIlNXB+BB/PNqFYtt+pYQ5d/h0uk4s5GigS0MrQXXow+mKdsVSiSWTk8HI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pqO+zKiO0FOV/VOzssYkMCCeAxj22HYfULHlieUtFNWPKDuTY3bzSlQ7v1r2VcV/PQ9gzqWLDUA6yskqQE1jVswnDRmFHulh8hZk8I8G6r3ISp1yEFV89CTVyzYt1WZ1Mr+ebtDBo8rkAWMLiQrB/0ZqAwlEv1PX88W3iUzEW4I= Received: by 10.114.149.2 with SMTP id w2mr885013wad.1196266203496; Wed, 28 Nov 2007 08:10:03 -0800 (PST) Received: by 10.114.205.12 with HTTP; Wed, 28 Nov 2007 08:10:03 -0800 (PST) Message-ID: Date: Wed, 28 Nov 2007 17:10:03 +0100 From: "Gregor Schneider" To: "Tomcat Users List" Subject: Re: How to make Tomcat shutdown itself if the address it is trying to bind is already in use. In-Reply-To: <69F5B6D2B8B85D4A8F3CF11C9D1E7DEA0C9FAE23@us-hqmail3.ariba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <69F5B6D2B8B85D4A8F3CF11C9D1E7DEA0C9FAE23@us-hqmail3.ariba.com> X-Virus-Checked: Checked by ClamAV on apache.org if [ -z "$(netstat -lnp | grep 8080)" ] then echo "Tomcat running" exit -1 else [ continue with startup-script ] fi do the same for port 8009 (AJP) however, the best way would be to first check if tomcat is running before starting it up.... remember: a fool with a tool is still a fool... gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org