Skip to content

Commit

Permalink
step 1: extract relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
jdvr committed Jul 27, 2017
1 parent 679da58 commit c2ecbd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion create-cluster
Expand Up @@ -16,13 +16,16 @@ fi


# Computed vars # Computed vars
ENDPORT=$((PORT+NODES)) ENDPORT=$((PORT+NODES))
redis-server() {
../../src/redis-server $@
}


if [ "$1" == "start" ] if [ "$1" == "start" ]
then then
while [ $((PORT < ENDPORT)) != "0" ]; do while [ $((PORT < ENDPORT)) != "0" ]; do
PORT=$((PORT+1)) PORT=$((PORT+1))
echo "Starting $PORT" echo "Starting $PORT"
../../src/redis-server --port $PORT --cluster-enabled yes --cluster-config-file nodes-${PORT}.conf --cluster-node-timeout $TIMEOUT --appendonly yes --appendfilename appendonly-${PORT}.aof --dbfilename dump-${PORT}.rdb --logfile ${PORT}.log --daemonize yes redis-server --port $PORT --cluster-enabled yes --cluster-config-file nodes-${PORT}.conf --cluster-node-timeout $TIMEOUT --appendonly yes --appendfilename appendonly-${PORT}.aof --dbfilename dump-${PORT}.rdb --logfile ${PORT}.log --daemonize yes
done done
exit 0 exit 0
fi fi
Expand Down

0 comments on commit c2ecbd3

Please sign in to comment.