]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mrun: a tool to run commands against specific mstart cluster
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 8 Dec 2015 17:36:47 +0000 (09:36 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 11 Dec 2015 16:20:33 +0000 (08:20 -0800)
E.g.,

$ ./mstart.sh foo -n
$ ./mrun foo ceph -s

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/mrun [new file with mode: 0755]

diff --git a/src/mrun b/src/mrun
new file mode 100755 (executable)
index 0000000..977eb24
--- /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 "$@"