Module Thin::Daemonizable
In: lib/thin/daemonizing.rb

Module included in classes that can be turned into a daemon. Handle stuff like:

  • storing the PID in a file
  • redirecting output to the log file
  • changing processs privileges
  • killing the process gracefully

Methods

Classes and Modules

Module Thin::Daemonizable::ClassMethods

Attributes

log_file  [RW] 
pid_file  [RW] 

Public Class methods

Public Instance methods

Change privileges of the process to the specified user and group.

Turns the current script into a daemon process that detaches from the console.

Register a proc to be called to restart the server.

Restart the server.

Protected Instance methods

If PID file is stale, remove it.

[Validate]