Daemons is a Ruby-based software that allows users to easily convert existing Ruby scripts into daemons for seamless running.
Aside from its basic functionality, daemons also offers an array of advanced features to further streamline your work. For instance, daemons allows exception backtracing and logging, which come in handy in case your ruby script unexpectedly crashes. Moreover, daemons has the ability to monitor and restart your processes automatically if they ever crash.
To run daemons, you will need a Ruby installation. The following are the steps for installation:
Installation with RubyGems:
$ su
# gem install daemons
Installation without RubyGems:
$ tar xfz daemons-x.x.x.tar.gz
$ cd daemons-x.x.x
$ su
# ruby setup.rb
What's new in this release? By default, any stray pid-files (i.e., pid-files which result from a killed daemon) are automatically deleted. You can deactivate this function by passing ":keep_pid_files => true" as an option. In addition, all pid files of multiple daemons are now deleted correctly upon exit of the daemon. For Windows platforms, the signal 'KILL' is now used instead of'TERM.' Moreover, "exit!" is now used in "trap('TERM')" instead of "exit" when option ":hard_exit" is given. Lastly, clarification on the exception log was done.
Overall, daemons is an excellent tool for wrapping and running Ruby scripts that run as a daemon. Its diverse features, along with its simple user interface, make it a valuable addition to Ruby developers' tools.
Version 10.0.10: N/A