mirror of https://gitee.com/bigwinds/arangodb
Fix XTERM option in scripts/startLocalCluster.sh
This commit is contained in:
parent
1e77d6abca
commit
4e82f4ec12
|
@ -33,8 +33,12 @@ TRANSPORT="tcp"
|
|||
LOG_LEVEL="INFO"
|
||||
LOG_LEVEL_AGENCY=""
|
||||
LOG_LEVEL_CLUSTER=""
|
||||
XTERM="x-terminal-emulator"
|
||||
XTERMOPTIONS="--geometry=80x43"
|
||||
if [ -z "$XTERM" ] ; then
|
||||
XTERM="x-terminal-emulator"
|
||||
fi
|
||||
if [ -z "$XTERMOPTIONS" ] ; then
|
||||
XTERMOPTIONS="--geometry=80x43"
|
||||
fi
|
||||
SECONDARIES=0
|
||||
BUILD="build"
|
||||
JWT_SECRET=""
|
||||
|
@ -248,7 +252,7 @@ startTerminal() {
|
|||
PORT=$2
|
||||
mkdir cluster/data$PORT
|
||||
echo Starting $TYPE on port $PORT
|
||||
$XTERM $XTERMOPTIONS -e ${BUILD}/bin/arangod \
|
||||
$XTERM $XTERMOPTIONS -e "${BUILD}/bin/arangod \
|
||||
-c none \
|
||||
--database.directory cluster/data$PORT \
|
||||
--cluster.agency-endpoint $TRANSPORT://127.0.0.1:$BASE \
|
||||
|
@ -264,7 +268,7 @@ startTerminal() {
|
|||
--javascript.app-path ./js/apps \
|
||||
$AUTHENTICATION \
|
||||
$SSLKEYFILE \
|
||||
--console &
|
||||
--console" &
|
||||
}
|
||||
|
||||
startDebugger() {
|
||||
|
@ -293,7 +297,7 @@ startDebugger() {
|
|||
--javascript.app-path ./js/apps \
|
||||
$SSLKEYFILE \
|
||||
$AUTHENTICATION &
|
||||
$XTERM $XTERMOPTIONS -e gdb ${BUILD}/bin/arangod -p $! &
|
||||
$XTERM $XTERMOPTIONS -e "gdb ${BUILD}/bin/arangod -p $!" &
|
||||
}
|
||||
|
||||
startRR() {
|
||||
|
@ -306,7 +310,7 @@ startRR() {
|
|||
PORT=$2
|
||||
mkdir cluster/data$PORT
|
||||
echo Starting $TYPE on port $PORT with rr tracer
|
||||
$XTERM $XTERMOPTIONS -e rr ${BUILD}/bin/arangod \
|
||||
$XTERM $XTERMOPTIONS -e "rr ${BUILD}/bin/arangod \
|
||||
-c none \
|
||||
--database.directory cluster/data$PORT \
|
||||
--cluster.agency-endpoint $TRANSPORT://127.0.0.1:$BASE \
|
||||
|
@ -322,7 +326,7 @@ startRR() {
|
|||
--javascript.app-path ./js/apps \
|
||||
$AUTHENTICATION \
|
||||
$SSLKEYFILE \
|
||||
--console &
|
||||
--console" &
|
||||
}
|
||||
|
||||
PORTTOPDB=`expr 8629 + $NRDBSERVERS - 1`
|
||||
|
|
Loading…
Reference in New Issue