Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 15680 invoked from network); 13 Jul 2007 23:57:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2007 23:57:15 -0000 Received: (qmail 22607 invoked by uid 500); 13 Jul 2007 23:57:16 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 22561 invoked by uid 500); 13 Jul 2007 23:57:16 -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 22550 invoked by uid 99); 13 Jul 2007 23:57:16 -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:57:16 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jason.dillon@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 16:57:12 -0700 Received: by py-out-1112.google.com with SMTP id u52so1207538pyb for ; Fri, 13 Jul 2007 16:56:51 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=CDmq/Q2kYmU/OeH1628sEGwg6HLyC9K4VLU8Wb0YkcQ6ySi7gYbvhNwGDQv4CnjVYy41zT7xNRiPzVM2s7sZUxLZ762PbmJAtud/7xvTmd0+Shdu02S5CCsE/+rkiRUI63/qeDeRA1K0ps6dN4W6KTpxf3AhUO9hK87MvLcTaRs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=uMz5EIgdfJhs75Tgf6p/oPKRNNNuclPiZxfNMfVVRiyJgr3yIe9Vt3IuIVuveJZ4HY1p5L3mermNbpk7ojfWq6v52995gUhhBW3TIitVqhjHj19Owg6aAtfeByNU7g3e9/nIxMgIucrWJltw7n8j80cRnLKO20HEY/FZakXiHP8= Received: by 10.141.108.21 with SMTP id k21mr602252rvm.1184371011164; Fri, 13 Jul 2007 16:56:51 -0700 (PDT) Received: from ?10.0.1.100? ( [24.7.69.241]) by mx.google.com with ESMTP id c36sm13773705rvf.2007.07.13.16.56.49 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jul 2007 16:56:50 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <9D388047-456B-42CB-A47A-168F5B9A9900@yahoo.com> References: <469804F1.2070303@apache.org> <9D388047-456B-42CB-A47A-168F5B9A9900@yahoo.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9028C500-1318-4B5B-9578-C68BAADA5EBD@planet57.com> Content-Transfer-Encoding: 7bit From: Jason Dillon Subject: Re: Ideas on a rc.d kind of directory Date: Fri, 13 Jul 2007 16:56:43 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) Sender: Jason Dillon X-Virus-Checked: Checked by ClamAV on apache.org I was kinda against this kinda thingy way back in the days of the boss-of-j, but I'm interested to hear more how you think it might work... since I just wrote off anything Marc said as crap automatically :-P --jason On Jul 13, 2007, at 4:17 PM, David Jencks wrote: > > 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 >