mirror of https://gitee.com/bigwinds/arangodb
moves -e to XTERMOPTIONS and adds delay (#5297)
* moves -e to XTERMOPTIONS and adds delay * add delay only when rr is used
This commit is contained in:
parent
6fdc811c41
commit
2829b3e77d
|
@ -40,7 +40,7 @@ if [ -z "$XTERM" ] ; then
|
|||
XTERM="x-terminal-emulator"
|
||||
fi
|
||||
if [ -z "$XTERMOPTIONS" ] ; then
|
||||
XTERMOPTIONS="--geometry=80x43"
|
||||
XTERMOPTIONS=" --geometry=80x43 -e "
|
||||
fi
|
||||
BUILD="./build"
|
||||
JWT_SECRET=""
|
||||
|
|
|
@ -111,10 +111,10 @@ fi
|
|||
if [ ! -z "$INTERACTIVE_MODE" ] ; then
|
||||
if [ "$INTERACTIVE_MODE" == "C" ] ; then
|
||||
ARANGOD="${BUILD}/bin/arangod "
|
||||
CO_ARANGOD="$XTERM $XTERMOPTIONS -e ${BUILD}/bin/arangod --console "
|
||||
CO_ARANGOD="$XTERM $XTERMOPTIONS ${BUILD}/bin/arangod --console "
|
||||
echo "Starting one coordinator in terminal with --console"
|
||||
elif [ "$INTERACTIVE_MODE" == "R" ] ; then
|
||||
ARANGOD="$XTERM $XTERMOPTIONS -e rr ${BUILD}/bin/arangod --console "
|
||||
ARANGOD="$XTERM $XTERMOPTIONS rr ${BUILD}/bin/arangod --console "
|
||||
CO_ARANGOD=$ARANGOD
|
||||
echo Running cluster in rr with --console.
|
||||
fi
|
||||
|
@ -125,6 +125,7 @@ fi
|
|||
|
||||
echo == Starting agency ...
|
||||
for aid in `seq 0 $(( $NRAGENTS - 1 ))`; do
|
||||
[ "$INTERACTIVE_MODE" == "R" ] && sleep 1
|
||||
port=$(( $AG_BASE + $aid ))
|
||||
AGENCY_ENDPOINTS+="--cluster.agency-endpoint $TRANSPORT://$ADDRESS:$port "
|
||||
$ARANGOD \
|
||||
|
@ -172,6 +173,7 @@ start() {
|
|||
PORT=$2
|
||||
mkdir -p cluster/data$PORT cluster/apps$PORT
|
||||
echo == Starting $TYPE on port $PORT
|
||||
[ "$INTERACTIVE_MODE" == "R" ] && sleep 1
|
||||
$CMD \
|
||||
-c none \
|
||||
--database.directory cluster/data$PORT \
|
||||
|
|
Loading…
Reference in New Issue