]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-osd-prestart.sh: drop Upstart-specific code 9667/head
authorNathan Cutler <ncutler@suse.com>
Mon, 13 Jun 2016 08:27:18 +0000 (10:27 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 7 Jul 2016 11:53:05 +0000 (13:53 +0200)
Before this patch, the ceph-osd-prestart.sh script would do Upstart-specific
things if the journal device failed to appear after a 5-second timeout.

Fixes: http://tracker.ceph.com/issues/15984
Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/ceph-osd-prestart.sh

index c5b99d53c695f85038377c0e44b7d30066d2b65c..ea6666540bb04a4bb8f03c30ed46d6e0a0cff830 100644 (file)
@@ -23,13 +23,11 @@ journal="$data/journal"
 if [ -L "$journal" -a ! -e "$journal" ]; then
     udevadm settle --timeout=5 || :
     if [ -L "$journal" -a ! -e "$journal" ]; then
-        echo "ceph-osd($UPSTART_INSTANCE): journal not present, not starting yet." 1>&2
-        stop
+        echo "ceph-osd(${cluster:-ceph}-$id): journal not present, not starting yet." 1>&2
         exit 0
     fi
 fi
 
-
 # ensure ownership is correct
 owner=`stat -c %U $data/.`
 if [ $owner != 'ceph' -a $owner != 'root' ]; then