title: How gracefully restart Sphinx search daemon after reindexing
body: <p>I've reindexed my Sphinx search with <code>/usr/local/sphinx/bin/indexer --all --rotate</code> and renamed my original index output files to something else. Simply changing the index argument passed to <code>$sphinx-&gt;Query($query, $index);</code> returns no results.</p>
  
  <p>I suspected the daemon doesn't know the new index files exist. So I ran</p>
  
  <p><code>sudo /usr/local/sphinx/bin/searchd</code></p>
  
  <p>again to try to restart it. But it threw</p>
  
  <p><code>FATAL: failed to lock pid file '/usr/local/sphinx/var/log/searchd.pid': Resource temporarily unavailable (searchd already running?)</code></p>
  
  <p>I had to <code>kill</code> the 2 processes of the search daemon and start it again to grab from the new index files. Is there a graceful way to restart it?</p>