From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GA9i8-0007uX-NX for garchives@archives.gentoo.org; Mon, 07 Aug 2006 18:20:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k77IIIox003674; Mon, 7 Aug 2006 18:18:18 GMT Received: from mail.obsidian-studios.com (mail.obsidian-studios.com [72.17.152.163]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k77IIGkQ031226 for ; Mon, 7 Aug 2006 18:18:17 GMT Received: (qmail 23383 invoked from network); 7 Aug 2006 14:18:18 -0400 Received: from mail.obsidian-studios.com (HELO ASSP-nospam) (192.168.0.51) by mail.obsidian-studios.com with SMTP; 7 Aug 2006 14:18:18 -0400 Received: from 192.168.1.211 ([192.168.1.211] helo=wlt.obsidian-studios.com) by ASSP-nospam ; 7 Aug 06 18:18:18 -0000 Subject: Re: [gentoo-java] tomcat permissions From: "William L. Thomson Jr." To: Jesse V Griffis Cc: gentoo-java@lists.gentoo.org In-Reply-To: <200608071409.58599.jgriffis@hdm.com> References: <200608071245.30525.jgriffis@hdm.com> <1154970185.14080.7.camel@wlt.obsidian-studios.com> <200608071409.58599.jgriffis@hdm.com> Content-Type: text/plain Organization: Obsidian-Studios, Inc. Date: Mon, 07 Aug 2006 14:18:17 -0400 Message-Id: <1154974697.14401.8.camel@wlt.obsidian-studios.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Assp-Spam-Prob: 0.00000 X-Assp-Envelope-From: wlt@obsidian-studios.com X-Archives-Salt: e8a73585-d788-48b1-9a56-3ee04a9d8e58 X-Archives-Hash: fa252951c5551bfd42af963d51a8cfb6 On Mon, 2006-08-07 at 14:09 -0400, Jesse V Griffis wrote: > > I have tomcat running as tomcat:tomcat. I have my normal user added to the > 'tomcat' group, so that after tomcat auto-deploys the new webapp and then > I've gone and done some more work, I can run ant again and the delete of the > existing webapp works quietly - without being group writable I can't do that > automatically. Ok that makes sense and I was assuming you were doing something along those lines. I don't will see if I can find a reason why group writable permissions are not set. If I can't then I will address ebuilds so the webapps dir is group writable. > > As for my "little more investigation", it's apparently not in > start-stop-daemon at all. I found an older machine with a different init > script that just calls catalina.sh: Yeah that's the nastiness. Avoid that, all new Tomcat ebuilds 5.0.28 and 5.5.17 use a gentoo specific init script. We don't hack or call catalina.sh anymore. > start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec > ${CATALINA_HOME}/bin/catalina.sh -- start > > That works as expected. The ps output appears nearly identical whether I use > this or the current 5.5 script, the only difference being that the current > one includes more under "-classpath". Well catalina.sh is part of several scripts for Tomcat. One of the ones it calls is setclasspath.sh. Our init script basically consists of the *nix specific parts of catalina.sh and setclasspath.sh compacted :) Our init script should start and stop tomcat more reliably. With a occasional hiccup on restart. Eventually I will replace it with the init script a Tomcat dev made, but I have to hack/patch that to make it Gentoo specific. So it is down the road a bit. Unless there is a dire need. -- Sincerely, William L. Thomson Jr. Obsidian-Studios, Inc. http://www.obsidian-studios.com -- gentoo-java@gentoo.org mailing list