diff options
-rwxr-xr-x | src/vstart.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vstart.sh b/src/vstart.sh index 691aeecad20..67a4157afd3 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -193,12 +193,15 @@ fi # lockdep everywhere? # export CEPH_ARGS="--lockdep 1" +[ -z "$CEPH_BIN" ] && CEPH_BIN=. +[ -z "$CEPH_PORT" ] && CEPH_PORT=6789 + # sudo if btrfs test -d dev/osd0/. && test -e dev/sudo && SUDO="sudo" if [ "$start_all" -eq 1 ]; then - $SUDO ./init-ceph stop + $SUDO $CEPH_BIN/init-ceph stop fi $SUDO rm -f core* @@ -224,9 +227,6 @@ else fi echo "ip $IP" -[ -z "$CEPH_BIN" ] && CEPH_BIN=. -[ -z "$CEPH_PORT" ] && CEPH_PORT=6789 - if [ "$cephx" -eq 1 ]; then |