]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: respect CEPH_NUM_RGW
authorSage Weil <sage@redhat.com>
Thu, 26 Jan 2017 17:05:35 +0000 (12:05 -0500)
committerSage Weil <sage@redhat.com>
Mon, 27 Feb 2017 14:56:54 +0000 (09:56 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/vstart.sh

index dab3ab6f0e896078ed1a98badc1a36fd92423c61..2af3c6943ddd9b994d59be4a5996e8a32700487e 100755 (executable)
@@ -892,7 +892,10 @@ do_rgw()
 
     RGWSUDO=
     [ $CEPH_RGW_PORT -lt 1024 ] && RGWSUDO=sudo
-    run 'rgw' $RGWSUDO $CEPH_BIN/radosgw -c $conf_fn --log-file=${CEPH_OUT_DIR}/rgw.log ${RGWDEBUG} --debug-ms=1
+    n=$(($CEPH_NUM_RGW - 1))
+    for rgw in `seq 0 $n`; do
+       run 'rgw' $RGWSUDO $CEPH_BIN/radosgw -c $conf_fn --log-file=${CEPH_OUT_DIR}/rgw.$rgw.log ${RGWDEBUG} --debug-ms=1
+    done
 }
 if [ "$start_rgw" -eq 1 ]; then
     do_rgw