Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 19488 invoked from network); 14 Feb 2005 11:32:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Feb 2005 11:32:15 -0000 Received: (qmail 63888 invoked by uid 500); 14 Feb 2005 11:32:13 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 63581 invoked by uid 500); 14 Feb 2005 11:32:11 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 63566 invoked by uid 99); 14 Feb 2005 11:32:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from blood.actrix.co.nz (HELO blood.actrix.co.nz) (203.96.16.160) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 14 Feb 2005 03:32:10 -0800 Received: from 203-96-30-175-actrix.co.nz (unknown [203.96.30.175]) by blood.actrix.co.nz (Postfix) with SMTP id A19F3463E for ; Tue, 15 Feb 2005 00:32:07 +1300 (NZDT) From: Bernard To: commons-dev@jakarta.apache.org Subject: jsvc on Linux: multiple instances possible, why -pidfile? Date: Tue, 15 Feb 2005 00:33:17 +1300 Message-ID: X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I created multiple jsvc instances that did not die. That happens with the adapted Tomcat5.sh supplied with the Tomcat 5.5 distribution. That's a problem. I would appreciate some help in understanding the logic of the pid file. This is my view of things; please correct me and help me if I am wrong: If, as it is presently the case, jsvc creates a pid file, then it must not be possible for jsvc to launch a second copy of a service. jsvc should however be able to briefly run only itself as multiple instances - it must be allowed to do so in order to check the pid file. It would not be reliable to pass this responsibility to the OS. So any jsvc copy on top of the first should exit with an error condition, and it should not attempt to start the jvm with the server. If jsvc is NOT designed to block multiple service instances, then it must not write the PID file. In that case it would be the responsibility of the script to write the pid file and block multiple service instances. What to do? Many thanks, Bernard --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org