e01e26a3ae
+ Install as a Ruby gem. - Fixed a severe bug in the new Pid.running? function: function returned true if the process did not exist. - By default, we now delete stray pid-files (i.e. pid-files which result for example from a killed daemon) automatically. This function can be deactivated by passing :keep_pid_files => true as an option. - All pid files of :multiple daemons new get deleted correctly upon exit of the daemons. - Use the signal 'KILL' instead of 'TERM' on Windows platforms. - Use exit! in trap('TERM') instead of exit when option :hard_exit is given. - Did some clarification on the exception log.
7 lines
505 B
Text
7 lines
505 B
Text
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.
|