From 4d003d66262db637d9f1189bbc85b30250d58b3c Mon Sep 17 00:00:00 2001 From: Mercier Pierre-Olivier Date: Thu, 5 Dec 2013 06:44:43 +0100 Subject: [PATCH] Add new moulette command: set_workers --- commands/moulette/set_workers.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 commands/moulette/set_workers.sh diff --git a/commands/moulette/set_workers.sh b/commands/moulette/set_workers.sh new file mode 100755 index 0000000..e03cce3 --- /dev/null +++ b/commands/moulette/set_workers.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +if [ -z "$1" ] +then + echo "Usage: $0 " + exit 1 +fi + +if ! which gearman > /dev/null 2> /dev/null +then + echo "gearman isn't installed on this machine. Please try another one." + exit 1 +fi + +cat < + + set_workers + $1 + +EOF