From eb8c74d46555cd0b41c345b663c6506ca65d61c8 Mon Sep 17 00:00:00 2001 From: Mercier Pierre-Olivier Date: Thu, 5 Dec 2013 07:19:20 +0100 Subject: [PATCH] Add action flush to stats --- commands/moulette/launch.sh | 2 ++ commands/moulette/set_workers.sh | 2 ++ commands/moulette/stats.sh | 17 ++++++++++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/commands/moulette/launch.sh b/commands/moulette/launch.sh index 0ebc4cd..f77e141 100755 --- a/commands/moulette/launch.sh +++ b/commands/moulette/launch.sh @@ -41,3 +41,5 @@ cat <$RENDU $LOGINS EOF + +echo diff --git a/commands/moulette/set_workers.sh b/commands/moulette/set_workers.sh index 724d43a..ec77cf9 100755 --- a/commands/moulette/set_workers.sh +++ b/commands/moulette/set_workers.sh @@ -19,3 +19,5 @@ cat <$1 EOF + +echo diff --git a/commands/moulette/stats.sh b/commands/moulette/stats.sh index 355e79e..0c1ac6e 100755 --- a/commands/moulette/stats.sh +++ b/commands/moulette/stats.sh @@ -6,9 +6,24 @@ then exit 1 fi +ACTION= +if [ -n "$1" ] +then + if [ "$1" = "flush" ] + then + ACTION=" flush +" + else + echo "Unknown action '$1'" + exit 1 + fi +fi + cat < stats - +$ACTION EOF + +echo