X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fmrgw.sh;fp=src%2Fceph%2Fsrc%2Fmrgw.sh;h=c5770ca917f28d402b3c8bdafdaa34f2013d9ccf;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/mrgw.sh b/src/ceph/src/mrgw.sh new file mode 100755 index 0000000..c5770ca --- /dev/null +++ b/src/ceph/src/mrgw.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +set -e + +script_root=`dirname $0` +script_root=`(cd $script_root;pwd)` +if [ -e CMakeCache.txt ]; then + script_root=$PWD +elif [ -e $script_root/../build/CMakeCache.txt ]; then + cd $script_root/../build + script_root=$PWD +fi +ceph_bin=$script_root/bin +vstart_path=`dirname $0` + +[ "$#" -lt 2 ] && echo "usage: $0 [params...]" && exit 1 + +name=$1 +port=$2 + +shift 2 + +run_root=$script_root/run/$name +pidfile=$run_root/out/radosgw.${port}.pid +asokfile=$run_root/out/radosgw.${port}.asok +logfile=$run_root/out/radosgw.${port}.log + +$vstart_path/mstop.sh $name radosgw $port + +$vstart_path/mrun $name radosgw --rgw-frontends="civetweb port=$port" --pid-file=$pidfile --admin-socket=$asokfile "$@" --log-file=$logfile