123456789_123456789_123456789_123456789_123456789_

Class: WEBrick::Daemon

Relationships & Source Files
Inherits: Object
Defined in: lib/webrick/server.rb

Overview

A generic module for daemonizing a process

Class Method Summary

  • .start

    Performs the standard operations for daemonizing a process.

Class Method Details

.start

Performs the standard operations for daemonizing a process. Runs a block, if given.

[ GitHub ]

  
# File 'lib/webrick/server.rb', line 46

def Daemon.start
  Process.daemon
  File.umask(0)
  yield if block_given?
end