instiki/vendor/rails/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb
Jacques Distler 5292899c9a Rails 2.1 RC1
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
2008-05-17 23:22:34 -05:00

8 lines
186 B
Ruby

module Kernel
# Turns the current script into a daemon process that detaches from the console.
# It can be shut down with a TERM signal.
def daemonize
Process.daemon
end
end