Class: Merb::BootLoader::DropPidFile

Inherits:
Merb::BootLoader show all
Defined in:
lib/merb-core/bootloader.rb

Overview

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.

Class Method Summary collapse

Methods inherited from Merb::BootLoader

after, after_app_loads, before, before_app_loads, default_framework, finished?, inherited, move_klass

Class Method Details

.runObject

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



165
166
167
# File 'lib/merb-core/bootloader.rb', line 165

def run
  Merb::Server.store_pid(Merb::Config[:port]) if Merb::Config[:daemonize] || Merb::Config[:cluster]
end