]> git.proxmox.com Git - ceph.git/blame - ceph/src/mrgw.sh
update sources to v12.2.5
[ceph.git] / ceph / src / mrgw.sh
CommitLineData
7c673cae
FG
1#!/bin/bash
2
3set -e
4
5script_root=`dirname $0`
6script_root=`(cd $script_root;pwd)`
7if [ -e CMakeCache.txt ]; then
8 script_root=$PWD
9elif [ -e $script_root/../build/CMakeCache.txt ]; then
10 cd $script_root/../build
11 script_root=$PWD
12fi
c07f9fc5 13ceph_bin=$script_root/bin
7c673cae
FG
14vstart_path=`dirname $0`
15
16[ "$#" -lt 2 ] && echo "usage: $0 <name> <port> [params...]" && exit 1
17
18name=$1
19port=$2
20
21shift 2
22
23run_root=$script_root/run/$name
24pidfile=$run_root/out/radosgw.${port}.pid
25asokfile=$run_root/out/radosgw.${port}.asok
26logfile=$run_root/out/radosgw.${port}.log
27
28$vstart_path/mstop.sh $name radosgw $port
29
30$vstart_path/mrun $name radosgw --rgw-frontends="civetweb port=$port" --pid-file=$pidfile --admin-socket=$asokfile "$@" --log-file=$logfile