Not suprisingly:
http://github.com/bryanl/simple-daemon/network
Also, good, since it is valuable for monit/god processes, and
alternatives are very brittle:
* Monit's recipe (
http://mmonit.com/wiki/Monit/FAQ#pidfile ), doesn't
check dupes
* Daemons gem (
http://daemons.rubyforge.org/) is very old, and has
some troubles with processes dying in the middle. Not to mention its
hardcoded chdir to '/' is just terrible (it is workable around, but
seriosly?).
Still trying to figure out which fork will work best, but Grockit's
(which was updated as recently as June 23), seems the most promising.