title: Ensure server is started in Chef recipe
body: <p>I am new to chef. I have a recipe where I need to start a server and then wait for the server to be successfully started.  I have this so far;</p>
  
  <pre class="lang-rb prettyprint-override"><code>service "myserver" do
    action :start
  end
  
  execute "ensure myserver startup" do
    command "curl http://#{node['myserver']['http']['host']}:#{node['myserver']['http']['port']}"
    retries 5
    retry_delay 15
  end
  </code></pre>
  
  <p>This doesn't seem right to me and seems like a common thing for chef scripts to want to do. What is the idiomatically correct way to wait for a server to start up?</p>