Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2008 13:00:04 GMT
From:      Tomas Verbaitis <tomasv@megalogika.lt>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/119319: www/tomcat55 rc.d script fails to stop tomcat
Message-ID:  <200801101300.m0AD04P2047523@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/119319; it has been noted by GNATS.

From: Tomas Verbaitis <tomasv@megalogika.lt>
To: Erik Cederstrand <erik@cederstrand.dk>
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801101300.m0AD04P2047523>