Permalink
Browse files

step 1: extract relative path

  • Loading branch information...
jdvr committed Jul 27, 2017
1 parent 679da58 commit c2ecbd3c1995f1fba70f5c0fcfb053e4180df6c4
Showing with 4 additions and 1 deletion.
  1. +4 −1 create-cluster
View
@@ -16,13 +16,16 @@ fi
# Computed vars
ENDPORT=$((PORT+NODES))
redis-server() {
../../src/redis-server $@
}
if [ "$1" == "start" ]
then
while [ $((PORT < ENDPORT)) != "0" ]; do
PORT=$((PORT+1))
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
exit 0
fi

0 comments on commit c2ecbd3

Please sign in to comment.