<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>MongoDB</anon>
  </categories>
  <description>非力な環境では、mongod の初回起動には結構な時間がかかる。 あとDBの修復とかも待ち時間が思ったより長い。 ので、起動が完了したことを待ちたいんだけど、どうしたらいいのかよくわからない。 なのでインチキをする。 接続できる＝mongodが起動完了した ということで、当たり障りのないコマンドを無限に試行する while ! mongo --eval &quot;db.stats().ok&quot; &gt;&amp;/dev/null; do echo まだ起動中 sleep 5 done echo 起動おわった！</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2Fmongoping&quot; title=&quot; MongoDBで、起動が完了したかどうかを確認する - 揮発性のメモ２&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1577169589465165</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-20 08:30:00</published>
  <title> MongoDBで、起動が完了したかどうかを確認する</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/mongoping</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
