diff options
author | antirez <antirez@gmail.com> | 2017-04-14 10:35:55 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-04-14 10:52:00 +0200 |
commit | 6878a3fedd8b15ed3c0602d15940007ebd240f22 (patch) | |
tree | 05bdf4696b26fd778277665154529722e287e00f /utils | |
parent | 8f7bf2841a4a793a02a01d5c4c887a7770aa5e45 (diff) | |
download | redis-6878a3fedd8b15ed3c0602d15940007ebd240f22.tar.gz |
Cluster: add clean-logs command to create-cluster script.
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/create-cluster/create-cluster | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/create-cluster/create-cluster b/utils/create-cluster/create-cluster index 98941496f..d821683f6 100755 --- a/utils/create-cluster/create-cluster +++ b/utils/create-cluster/create-cluster @@ -86,6 +86,12 @@ then exit 0 fi +if [ "$1" == "clean-logs" ] +then + rm -rf *.log + exit 0 +fi + echo "Usage: $0 [start|create|stop|watch|tail|clean]" echo "start -- Launch Redis Cluster instances." echo "create -- Create a cluster using redis-trib create." @@ -93,3 +99,4 @@ 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 "clean -- Remove all instances data, logs, configs." +echo "clean-logs -- Remove just instances logs." |