summaryrefslogtreecommitdiffstats
path: root/src/mrun
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2015-12-08 18:36:47 +0100
committerYehuda Sadeh <yehuda@redhat.com>2015-12-11 17:20:33 +0100
commitdf92e267183e2ea68cc97b4409a6efe463cd38ee (patch)
tree17200bc270048d4d35e6bff70702c88f25c0a11d /src/mrun
parentmstart.sh: run multiple clusters in a single source tree (diff)
downloadceph-df92e267183e2ea68cc97b4409a6efe463cd38ee.tar.xz
ceph-df92e267183e2ea68cc97b4409a6efe463cd38ee.zip
mrun: a tool to run commands against specific mstart cluster
E.g., $ ./mstart.sh foo -n $ ./mrun foo ceph -s Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/mrun')
-rwxr-xr-xsrc/mrun11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mrun b/src/mrun
new file mode 100755
index 00000000000..977eb24be7b
--- /dev/null
+++ b/src/mrun
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+[ $# -lt 2 ] && echo "usage: $0 <name> <command> [params...]" && exit 1
+
+root=`dirname $0`
+run_name=$1
+command=$2
+
+shift 2
+
+$root/$command -c $root/run/$run_name/ceph.conf "$@"