Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 1924 invoked from network); 13 Jul 2007 23:18:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2007 23:18:17 -0000 Received: (qmail 71833 invoked by uid 500); 13 Jul 2007 23:18:18 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 71773 invoked by uid 500); 13 Jul 2007 23:18:18 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 71762 invoked by uid 99); 13 Jul 2007 23:18:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 16:18:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [69.147.102.70] (HELO smtp107.plus.mail.re1.yahoo.com) (69.147.102.70) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 13 Jul 2007 16:18:14 -0700 Received: (qmail 97698 invoked from network); 13 Jul 2007 23:17:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=FWjo3H1k/kqmuSbBW3mbclgNY42IkWG02W+NAZDEjpC198PkvjgOVTJ9PPZ066v+WPywSwdvmfOcUuOI8XAVo2tXZfhtJ/RfNVBs+Cv7onb6B+k/huAoB+9GFBGycvnSEnBpgxQ77yDqSEVh24nuUdLve0L23uC/Z81hzprmr6M= ; Received: from unknown (HELO ?192.168.1.113?) (david_jencks@68.166.239.214 with plain) by smtp107.plus.mail.re1.yahoo.com with SMTP; 13 Jul 2007 23:17:52 -0000 X-YMail-OSG: T.nL07IVM1lTv3mpucJW65Qc25Ad_cC0BeOwKXMCVn6KxjlD8FvgXtAT8kgveAJk37WOwusjYA-- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <469804F1.2070303@apache.org> References: <469804F1.2070303@apache.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9D388047-456B-42CB-A47A-168F5B9A9900@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Ideas on a rc.d kind of directory Date: Fri, 13 Jul 2007 19:17:55 -0400 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Jul 13, 2007, at 7:04 PM, Jeff Genender wrote: > Hi, > > As we move forward and we integrate with more and more 3rd party > products, we will need the ability to be able to change an environment > variable through a plugin, or add a commandline JAVA_OPTS, etc. > > Currently our startup scripts call the setjavaenv.sh to set > environment > properties. It would really be nice to have the ability to have a > "scripts" directory, where all of the scripts get executed before > Geronimo is launched. Why do we want this? > > As we grow in our plugins, they will need to set environment or java > options set before running G. They may also have a need to start > or run > other outside processes that are not a part of G. > > It would be great to allow plugins to install an rc script that gets > executed to do activities before and perhaps after G is run? > > I would propose we create a scripts directory under bin or under var > that could be similar to init.d, and have it called with start/stop, > etc. This way plugins can install specific scripts in these > directories > for execution. > > Thoughts? How cross platform can we make this? I'm not sure I know what kinds of things you expect this to be used for, so if you can provide some more concrete examples I'd appreciate it. I'm wondering if this is the kind of stuff that we've been taking care of so far with e.g. the SystemPropertiesGbean and DirectoryInitializationGBean. thanks david jencks > > Jeff