With daemon-spawn you can start, stop and restart processes that run in the background. Processed are tracked by a simple PID file written to disk.
Alex Vollmer
gem "daemon-spawn", "~> 0.3.0"