diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-08-27 12:40:03 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-27 12:40:03 -0400 |
commit | bce619cbf5a720e409de9f05387c10e86586ba26 (patch) | |
tree | 38d241ee01619ac4db006c9ec0e794acb5a1ce15 /rel/overlay/bin | |
parent | f0d05161f569763dc8d00e5149009e6e92f2cebb (diff) |
read Erlang VM arguments from config file
Diffstat (limited to 'rel/overlay/bin')
-rwxr-xr-x | rel/overlay/bin/dbcore | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/rel/overlay/bin/dbcore b/rel/overlay/bin/dbcore index 4ffd69fa..6ada061e 100755 --- a/rel/overlay/bin/dbcore +++ b/rel/overlay/bin/dbcore @@ -4,23 +4,15 @@ ERTS_BIN_DIR=$(cd ${0%/*} && pwd) -ROOTDIR=${ERTS_BIN_DIR%/*} +export ROOTDIR=${ERTS_BIN_DIR%/*} START_ERL=`cat $ROOTDIR/releases/start_erl.data` ERTS_VSN=${START_ERL% *} APP_VSN=${START_ERL#* } -BINDIR=$ROOTDIR/erts-$ERTS_VSN/bin -EMU=beam -PROGNAME=`echo $0 | sed 's/.*\///'` -CMD="$BINDIR/erlexec" +export BINDIR=$ROOTDIR/erts-$ERTS_VSN/bin +export EMU=beam +export PROGNAME=`echo $0 | sed 's/.*\///'` -export EMU -export ROOTDIR -export BINDIR -export PROGNAME - -exec $CMD -boot $ROOTDIR/releases/$APP_VSN/dbcore \ - +Bd -noinput -sasl errlog_type error \ - +A 16 +K true \ - -name dbcore +exec $BINDIR/erlexec -boot $ROOTDIR/releases/$APP_VSN/dbcore \ + -args_file $ROOTDIR/etc/vm.args |