I've got this, which is a slightly different but equivalent technique that
doesn't require the jvm-arg tag (applicable bits only, my startup script
does other things too):

USER=username
HTTPD=/usr/local/resin/bin/httpd.sh
su $USER -c "$HTTPD start -verbose -J-server -Dvar1=value1 -Dvar2=value2 $*"

Rachel

On Mon, Nov 30, 2009 at 2:28 PM, Alex <a...@caucho.com> wrote:

> >> Aaron,
> >>
> >> Maybe I am missing something, but if you can pass in
> >> -Dconfiguration=wherever to your individual machines (in your
> >> /etc/init.d/resin script or wherever, I assume?), can't you pass in
> >> your server specific JVM args there too?
> >>
> >> Rachel
> > Probably.  The configuration is passed in via an environment variable,
> > but I could pass those in dynamically too if I have too.  If we set
> > those from our resin script will the ResinWatchdogManager pass the same
> > values to the actual Resin server, when it launches it?
>
> Yes. The variable needs to be exported
>
> !#/bin/bash
> export foo=foo-value
> bin/httpd.sh -server a start
>
>
>
> resin.conf file:
>
> <server id="a" address="127.1" port="6080">
> <jvm-arg>-Dbar=${Var["foo"]}</jvm-arg>
> </server>
>
> Alex
> > I wasn't sure,
> > so I was just going by the example resin.conf file that comes with Resin
> > 3.1.9.
> >
> > Aaron
> >
> >
> > _______________________________________________
> > resin-interest mailing list
> > resin-interest@caucho.com
> > http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to