summaryrefslogtreecommitdiff
path: root/utils/create-cluster
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-12-11 10:16:25 +0100
committerantirez <antirez@gmail.com>2019-12-11 10:16:25 +0100
commit29fddf32918e905453398fafb4433c30f2b4aba3 (patch)
tree410d2a0964035ba6f0715c25d67faea865f31493 /utils/create-cluster
parente4b6070c0f86ae2cd92c53301253cbabf565dd68 (diff)
downloadredis-29fddf32918e905453398fafb4433c30f2b4aba3.tar.gz
create-cluster script tailall option.
Diffstat (limited to 'utils/create-cluster')
-rwxr-xr-xutils/create-cluster/create-cluster7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/create-cluster/create-cluster b/utils/create-cluster/create-cluster
index ab287403a..4aef0816a 100755
--- a/utils/create-cluster/create-cluster
+++ b/utils/create-cluster/create-cluster
@@ -71,6 +71,12 @@ then
exit 0
fi
+if [ "$1" == "tailall" ]
+then
+ tail -f *.log
+ exit 0
+fi
+
if [ "$1" == "call" ]
then
while [ $((PORT < ENDPORT)) != "0" ]; do
@@ -101,5 +107,6 @@ echo "create -- Create a cluster using redis-cli --cluster create."
echo "stop -- Stop Redis Cluster instances."
echo "watch -- Show CLUSTER NODES output (first 30 lines) of first node."
echo "tail <id> -- Run tail -f of instance at base port + ID."
+echo "tailall -- Run tail -f for all the log files at once."
echo "clean -- Remove all instances data, logs, configs."
echo "clean-logs -- Remove just instances logs."