couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Miell" <ian.mi...@gmail.com>
Subject Re: Need the ability to pass erl command args at startup.
Date Thu, 21 Aug 2008 07:06:58 GMT
While on this topic, is there any reason +K true is not used by
default on couchdb? We use it when using mochiweb. Perhaps there's
some technical argument for not using it we should be aware of?
Thanks,
Ian

On Thu, Aug 21, 2008 at 4:18 AM, Noah Slater <nslater@apache.org> wrote:
> On Wed, Aug 20, 2008 at 10:52:41PM -0400, Damien Katz wrote:
>> We need the ability to pass couchdb command line args down to the erlang
>> vm. We'll need this for configuring erlang distributed computing, and
>> need this for testing vm optimizations.
>
> Yup, very useful.
>
> I looked at this problem ages ago though, so you will be pleased to know there
> is already a solution available to you.
>
>> Something like:
>>
>> $ ./couchdb -erl "-sname foo"
>
> The actual command you should run is either:
>
>  $ ERL_AFLAGS="-sname foo" ./couchdb
>
> If you want to prepend the options, or:
>
>  $ ERL_ZFLAGS="-sname foo" ./couchdb
>
> If you want to append them.
>
> There is a note in the "couchdb -h" hinting to this:
>
>  Erlang inherits the environment of this command.
>
> I could make it more explicit if you like?
>
> Best.
>
> --
> Noah Slater, http://people.apache.org/~nslater/
>

Mime
View raw message