]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: fix init-ceph stop on vstart
authorSage Weil <sage@redhat.com>
Fri, 24 Feb 2017 19:54:10 +0000 (14:54 -0500)
committerSage Weil <sage@redhat.com>
Mon, 27 Feb 2017 14:56:55 +0000 (09:56 -0500)
Do this before the old ceph.conf is deleted!

Signed-off-by: Sage Weil <sage@redhat.com>
src/vstart.sh

index 717d4a3d992209979fbe67b4e52a22043100a995..81beaa8a2f9eb923b3532b8d7120a653f13c9b2a 100755 (executable)
@@ -290,6 +290,10 @@ esac
 shift
 done
 
+if [ "$start_all" -eq 1 ]; then
+    $SUDO $INIT_CEPH stop
+fi
+
 if [ "$overwrite_conf" -eq 0 ]; then
     MON=`$CEPH_BIN/ceph-conf -c $conf_fn --name $VSTART_SEC num_mon 2>/dev/null` && \
         CEPH_NUM_MON="$MON"
@@ -422,9 +426,6 @@ fi
 # sudo if btrfs
 test -d $CEPH_DEV_DIR/osd0/. && test -e $CEPH_DEV_DIR/sudo && SUDO="sudo"
 
-if [ "$start_all" -eq 1 ]; then
-    $SUDO $INIT_CEPH stop
-fi
 prun $SUDO rm -f core*
 
 test -d $CEPH_OUT_DIR || mkdir $CEPH_OUT_DIR