title: Thin and sinatra - how to stop/restart? No thin.pid
body: <p>I'm using thin as the server for my Sinatra app. It is started thusly:</p>
  
  <pre><code>thin -C config/environment.yml -R config/config.ru start
  </code></pre>
  
  <p>Where <code>environment.yml</code> has thin stuff and <code>config.ru</code> has general stuff you'd find in a rackup file.</p>
  
  <p>I would like to be able to daemonize (easy enough with thin's config file) and stop and restart this much like one does with apache/tomcat/etc.</p>
  
  <p>When I try <code>thin stop</code> or restart or various other things, I get:</p>
  
  <p><code>Can't stop process, no PID found in tmp/pids/thin.pid</code></p>
  
  <p>Indeed, there is no such file. I have tried specifying a pid file and location (ex. <code>/tmp/thin.pid</code>, to be easy) in the thin configuration yml to various different places. All this does is change the location of the directory in the <code>"no PID found in"</code> message, still no pid file is created.</p>
  
  <p>Any ideas?</p>