From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 10 13:00:04 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1C1816A417 for ; Thu, 10 Jan 2008 13:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6765C13C4EB for ; Thu, 10 Jan 2008 13:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0AD04ee047524 for ; Thu, 10 Jan 2008 13:00:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0AD04P2047523; Thu, 10 Jan 2008 13:00:04 GMT (envelope-from gnats) Date: Thu, 10 Jan 2008 13:00:04 GMT Message-Id: <200801101300.m0AD04P2047523@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Tomas Verbaitis Cc: Subject: Re: ports/119319: www/tomcat55 rc.d script fails to stop tomcat X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tomas Verbaitis List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2008 13:00:04 -0000 The following reply was made to PR ports/119319; it has been noted by GNATS. From: Tomas Verbaitis To: Erik Cederstrand Cc: bug-followup@freebsd.org, edwin@freebsd.org Subject: Re: ports/119319: www/tomcat55 rc.d script fails to stop tomcat Date: Thu, 10 Jan 2008 14:54:37 +0200 --qcHopEYAB45HaUaB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. As far as I understand the situation, the problem boils down to ps utility. In /etc/rc.subr function 'find_processes' there's a call to ps that looks like this: ps -ww -o pid=3D -o jid=3D -o command=3D -p 55816 In the case of Tomcat, on a non-jail system for both root and plain user and for a jailed non-root users it prints 55816 0 [java] For a jailed root it prints the whole command line. 55816 0 /usr/local/jdk1.6.0/bin/java -Djava.endorsed.dirs=3D -classpat= h /usr/local/tomcat5.5/bin/bootstrap.jar:/usr/local/tomcat5.5/bin/commons-l= ogging-api.jar: -Dcatalina.base=3D/usr/local/tomcat5.5 -Dcatalina.home=3D/u= sr/local/tomcat5.5 -Djava.io.tmpdir=3D/usr/local/tomcat5.5/temp org.apache.= catalina.startup.Bootstrap start Therefore to solve this problem we should either change the way /etc/rc.subr works or file a PR about a problem in ps or, perhaps, get some explanation why it has to be or that we're overlooking something. I am cc'ing edwin@, as a "more official" participant in this case, maybe he would advise some course of action. --=20 Tomas "Verbaitis" Verbaitis ** http://megalogika.lt --qcHopEYAB45HaUaB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHhhWNTZzwEIgdOiYRAm3eAKC0W9dwhI0t6uGa3vLN5WmmUwKS4wCbBceK ksvBayHTUID33jxVriqSPdw= =B17f -----END PGP SIGNATURE----- --qcHopEYAB45HaUaB--