Class Merb::BootLoader::DropPidFile
In: merb-core/lib/merb-core/bootloader.rb
Parent: Merb::BootLoader

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.

Methods

run  

Public Class methods

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

Returns

nil

:api: plugin

[Source]

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

[Validate]