]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
vstart.sh: quote cmd params when display executing cmd
authorJiaying Ren <jiaying.ren@umcloud.com>
Thu, 17 Aug 2017 04:11:32 +0000 (12:11 +0800)
committerJiaying Ren <jiaying.ren@umcloud.com>
Tue, 29 Aug 2017 07:08:43 +0000 (15:08 +0800)
commitf545630888d52231a225b8cf0e1b31a7d1f6af01
tree23863a8354207e60822defa94b344510547c6290
parent51ccc5feabea18e6804ec954968e3444be7cb16e
vstart.sh: quote cmd params when display executing cmd

vstart.sh will echo executed cmd to the stdout:

/root/jiaying/ceph/build/bin/radosgw -c /root/jiaying/ceph/build/ceph.conf --log-file=/root/jiaying/ceph/build/out/rgw.j.log --debug-ms=1 -n client.rgw --rgw_frontends=civetweb port=8000

As params contain whitespaces, pasting the above cmd into the shell didn't start rgw
on the port 8000. Now the vstart.sh output is like the following:

'/root/jiaying/ceph/build/bin/radosgw' '-c' '/root/jiaying/ceph/build/ceph.conf' '--log-file=/root/jiaying/ceph/build/out/rgw.j.log' '--debug-ms=1' '-n' 'client.rgw' '--rgw_frontends=civetweb port=8000'

We can paste above cmd to the shell to restart rgw, it's more convenient for debugging.

Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
src/vstart.sh