Class DaemonKit::Application
In: lib/daemon_kit/application.rb
Parent: Object

Class responsible for making the daemons run and keep them running.

Methods

Public Class methods

Run the specified file as a daemon process.

Exit the daemon TODO: Make configurable callback chain TODO: Hook into at_exit()

Run the daemon in the foreground without daemonizing

Call this from inside a daemonized process to complete the initialization process

Run our file properly

Protected Class methods

Release the old working directory and insure a sensible umask TODO: Make chroot directory configurable

Make sure all file descriptors are closed (with the exception of STDIN, STDOUT & STDERR)

Daemonize the process

Redirect our IO TODO: make this configurable

[Validate]