]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #!/bin/bash |
2 | ||
3 | set -e | |
4 | ||
5 | script_root=`dirname $0` | |
6 | script_root=`(cd $script_root;pwd)` | |
7 | if [ -e CMakeCache.txt ]; then | |
8 | script_root=$PWD | |
9 | elif [ -e $script_root/../build/CMakeCache.txt ]; then | |
10 | cd $script_root/../build | |
11 | script_root=$PWD | |
12 | fi | |
c07f9fc5 | 13 | ceph_bin=$script_root/bin |
7c673cae FG |
14 | vstart_path=`dirname $0` |
15 | ||
16 | [ "$#" -lt 2 ] && echo "usage: $0 <name> <port> [params...]" && exit 1 | |
17 | ||
18 | name=$1 | |
19 | port=$2 | |
20 | ||
21 | shift 2 | |
22 | ||
23 | run_root=$script_root/run/$name | |
24 | pidfile=$run_root/out/radosgw.${port}.pid | |
25 | asokfile=$run_root/out/radosgw.${port}.asok | |
26 | logfile=$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 |