class Merb::BootLoader::DropPidFile

Stores pid file.

Only run if daemonization or clustering options specified on start. Port is taken from Merb::Config and must be already set at this point.

Public Class Methods

run() click to toggle source

Stores a PID file if Merb is running daemonized or clustered.

Returns

nil

:api: plugin

# File lib/merb-core/bootloader.rb, line 237
def run
  Merb::Server.store_pid("main") if Merb::Config[:daemonize] || Merb::Config[:cluster]
  nil
end