title: Recommended way to manage persistent PHP script processes?
body: <p>First off - hello, this is my first Stack Overflow question so I'll try my best to communicate properly.</p>
  
  <p>The title of my question may be a bit ambiguous so let me expand upon it immediately:</p>
  
  <p>I'm planning a project which involves taking data inputs from several "streaming" APIs, Twitter being one example. I've got a basic script coded up in PHP which runs indefinitely from the command line, taking input from the Twitter streaming API and doing very basic things with it.</p>
  
  <p>My eventual objective is to have several such processes running (perhaps daemonized using the <a href="http://pear.php.net/package/System_Daemon" rel="noreferrer">System Daemon</a> PEAR class), and I would like to be able to manage them from some governing process (also a PHP script). By manage I mean basic operations such as stop/start and (most crucially) automatically restarting a process that crashes.</p>
  
  <p>I would appreciate any pointers on how best to approach this process management angle. Again, apologies if this question is too expansive - tips on more tightly focused lines of enquiry would be appreciated if necessary. Thanks for reading and I look forward to your answers.</p>