With out-of-tree builds, vstart.sh needs CEPH_BIN to be set, and
needs to look for init-ceph in CEPH_BIN rather than just ./init-ceph.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
# 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*
fi
echo "ip $IP"
-[ -z "$CEPH_BIN" ] && CEPH_BIN=.
-[ -z "$CEPH_PORT" ] && CEPH_PORT=6789
-
if [ "$cephx" -eq 1 ]; then