Class | Merb::Server |
In: |
lib/merb-core/server.rb
|
Parent: | Object |
Get a list of the pid files.
Array: | List of pid file paths. If not clustered, array contains a single path. |
Removes a PID file used by the server from the filesystem. This uses :pid_file options from configuration when provided or merb.<port>.pid in log directory by default.
port<~to_s>: | The port of the Merb process to whom the the PID file belongs to. |
If Merb::Config[:pid_file] has been specified, that will be used instead of the port based PID file.
Start a Merb server, in either foreground, daemonized or cluster mode.
port<~to_i>: | The port to which the first server instance should bind to. Subsequent server instances bind to the immediately following ports. |
cluster<~to_i>: | Number of servers to run in a cluster. |
If cluster is left out, then one process will be started. This process will be daemonized if Merb::Config[:daemonize] is true.
Stores a PID file on the filesystem. This uses :pid_file options from configuration when provided or merb.<port>.pid in log directory by default.
port<~to_s>: | The port of the Merb process to whom the the PID file belongs to. |
If Merb::Config[:pid_file] has been specified, that will be used instead of the port based PID file.