diff options
Diffstat (limited to 'rel/overlay/bin/dbcore')
-rwxr-xr-x | rel/overlay/bin/dbcore | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/rel/overlay/bin/dbcore b/rel/overlay/bin/dbcore new file mode 100755 index 00000000..003544c2 --- /dev/null +++ b/rel/overlay/bin/dbcore @@ -0,0 +1,26 @@ +#!/bin/bash + +# cloudant dbcore start script + +ERTS_BIN_DIR=$(cd ${0%/*} && pwd) + +ROOTDIR=${ERTS_BIN_DIR%/*/*}/dbcore + +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 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 |