From owner-freebsd-ports@FreeBSD.ORG Mon Feb 23 04:16:46 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D0C816A4CE for ; Mon, 23 Feb 2004 04:16:46 -0800 (PST) Received: from thezone.swistgroup.com (thezone.swistgroup.com [196.44.35.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A83A43D1D for ; Mon, 23 Feb 2004 04:16:45 -0800 (PST) (envelope-from conrad.burger@swistgroup.com) Received: from mailnull by thezone.swistgroup.com with local (Exim 4.24; FreeBSD 5.1) id 1AvF0s-000OOj-1a for ports@freebsd.org; Mon, 23 Feb 2004 14:16:42 +0200 Received: from steinmail.swistgroup.com ([172.16.1.3])by thezone.swistgroup.com with esmtp (Exim 4.24; FreeBSD 5.1)id 1AvF0r-000OOX-EAfor ports@freebsd.org; Mon, 23 Feb 2004 14:16:41 +0200 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain;charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Mon, 23 Feb 2004 14:17:41 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Tomcat 4.1.29 - Start then shuts down Thread-Index: AcP25Ej3MV7aJ6bdR7W0pYJPcfy/vADIF+Xg From: "Conrad Burger" To: X-Scan-Signature: 1e6c4a05cfcc0aa24508691bdb1b3abd X-Disclaimer: SWIST Subject: RE: Tomcat 4.1.29 - Start then shuts down X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 12:16:46 -0000 ************************************************************ Click here to view our e-mail legal notice: http://www.swistgroup.com/email.htm or call: +27 21 888 7920 ************************************************************ Hi=20 Got tomcat to continue running by forcing it to start up last. = (STARTUP_ORDER =3D zzz) Had to modify the pkg-plist for this to work.=20 (I have to create a package, coz it's the easiest way to deploy the = app.) Would it be possible to modify the Makefile + pkg-plist and use = PLIST_SUB to merge in the specified startup prefix ? =20 Cheers=20 Conrad=20 > -----Original Message----- > From: Angelo Turetta [mailto:aturetta@commit.it]=20 > Sent: 19 February 2004 02:30 PM > To: ports@freebsd.org > Cc: Conrad Burger > Subject: Re: Tomcat 4.1.29 - Start then shuts down >=20 >=20 > ----- Original Message -----=20 > From: "Conrad Burger" > Sent: Thursday, February 19, 2004 9:15 AM >=20 > > When the system boots, it shows that tomcat is started. > > But when I do a sockstat or ps I can find the java processes. After=20 > > reading the tomcat log files, it looks as if tomcat starts=20 > up and 3-5=20 > > seconds later shuts down again. When I manually start=20 > tomcat it works=20 > > with out any further problems. > > > > Has any one ever seen this behaviour ? >=20 > This is very similar to the behaviour shown after installing=20 > Tomcat from a package instead than from ports, before a patch=20 > that was commited just before 5.2-RELEASE. >=20 > If that is your case, you will see files/dirs in=20 > /usr/local/jakarta-tomcat4.1 (or wherever else if you didn't=20 > install with default paths) owned by the user you installed=20 > the package as. That whole tree must be owned by www:www (eg:=20 > chown -R www:www /usr/local/jakarta-tomcat4.1). >=20 > If I remember correct, some files are missing from the=20 > package too, so I'd advise pkg_remove and reinstall from=20 > recently cvsup-ed ports (write me in private mail if you=20 > would like to download a prebuilt package). >=20 > Ciao, > Angelo Turetta >=20 >=20