simple-daemon
Get Version
0.1.2→ ‘simple-daemon’
What
SimpleDaemon is a lightweight daemon module for Ruby. Use it to add daemon functionality to your Ruby script.
Installation
sudo gem install simple-daemon
Example
class Processor < SimpleDaemon::Base
SimpleDaemon::WorkingDirectory = "#{RAILS_ROOT}/log"
def self.start
loop do
# loop through some process
end
end
def self.stop
puts "Stopping processor "
end
end
Processor.daemonize
Forum
http://groups.google.com/group/simple-daemon
How to submit patches
Read the 8 steps for fixing other people’s code and for section 8b: Submit patch to Google Groups, use the Google Group above.
The trunk repository is svn://rubyforge.org/var/svn/simple-daemon/trunk for anonymous access.
License
This code is free to use under the terms of the MIT license.
Contact
Thanks to Sharon Rosner for the original module. simple-daemon is substantially his code, with a few improvements (and the gem packaging) by Jon Dahl of Slantwise Design and Railspikes (blog).
Comments are welcome. Send an email to simple-daemon@googlegroups.com.
Dr Nic, 9th July 2007
Theme extended from Paul Battley