title: Dynamic Ruby Daemon Management
body: <p>I have a Ruby process that listens on a given device. I would like to spin up/down instances of it for different devices with a rails app. Everything I can find for Ruby daemons seems to be based around a set number of daemons running or background processing with message queues.</p>
  
  <p>Should I just be doing this with <code>Kernel.spawn</code> and storing the PIDs in the database? It seems a bit hacky but if there isn't an existing framework that allows me to bring up/down daemons it seems I may not have much choice.</p>