Daemons provides an easy way to wrap existing ruby scripts (for example a self-written server) to be run as a daemon and to be controlled by simple start/stop/restart commands.
Daemons
provides an easy way to wrap existing ruby scripts (for example a self-written server) to be run as a daemon and to be controlled by simple start/stop/restart commands.
You can also call blocks as daemons
and control them from the parent or just daemonize the current process. Besides this basic functionality, daemons
offers many advanced features like exception backtracing and logging (in case your ruby script crashes) and monitoring and automatic restarting of your processes if they crash.
- Rubygem daemons
- Github ghazel/daemons
Daemon-kit
aims to simplify creating Ruby daemons by providing a sound application skeleton (through a generator), task specific generators (jabber bot, etc) and robust environment management code.
- Rubygem daemon-kit
- Github kennethkalmer/daemon-kit
Find more info about projects and plug-ins for daemonizing in Ruby here