summaryrefslogtreecommitdiff
path: root/rel/overlay/bin/dbcore
blob: 003544c2af618b9cde426b108e7d996a00fbbf63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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