summaryrefslogtreecommitdiff
path: root/rel/overlay/bin/dbcore
diff options
context:
space:
mode:
authorBrad Anderson <brad@cloudant.com>2010-08-19 19:30:32 -0400
committerBrad Anderson <brad@cloudant.com>2010-08-19 19:30:32 -0400
commit75a44a40776917073c87a2e2e44c9fef516364b8 (patch)
treeeb2ca214f36a4bf819c5298dfb22c375fd9e3d67 /rel/overlay/bin/dbcore
parent53891dc8034f969612dec1ef300e63aaead0262d (diff)
make dist back in working order, and dbcore starts successfully
Diffstat (limited to 'rel/overlay/bin/dbcore')
-rwxr-xr-xrel/overlay/bin/dbcore26
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