From 55cd4e8b18f7052b5c9ec60058b3fa58297481ed Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 26 Jan 2017 12:05:35 -0500 Subject: [PATCH] vstart.sh: respect CEPH_NUM_RGW Signed-off-by: Sage Weil --- src/vstart.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vstart.sh b/src/vstart.sh index dab3ab6f0e896..2af3c6943ddd9 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -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 -- 2.39.5