+ 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.
Changes:
* new Pid.running? function. Checking whether a process exists by sending
signal '0'
* Patch to fix wrong ARGV when using :exec (in def start_exec:
Kernel.exec(script(), *(@app_argv || [])))
Changes:
* Applied patch that causes daemons to use '/var/log' as logfile
directory if you use :dir_mode = :system (thanks to Han Holl).
* Daemons should now work with Ruby 1.9 (at least the basic features).
Changes since 1.0.2:
* Document the :log_output option.
* Set STDOUT.sync = true when redirecting to a logfile.
* Should now run also correctly when there is no working 'ps ax' on the
system
* Set the app_name correctly also for the monitor process.
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 can also
run and control blocks of Ruby code in a daemon process.