Wait briefly for the journal to appear if it isn't there yet, then give up.
Signed-off-by: Sage Weil <sage@inktank.com>
journal="/var/lib/ceph/osd/${cluster:-ceph}-$id/journal"
if [ -L "$journal" -a ! -e "$journal" ]; then
- echo "ceph-osd($UPSTART_INSTANCE): journal not present, not starting yet." 1>&2
- stop
- exit 0
+ 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
+ exit 0
+ fi
fi
end script