Class | Merb::Server |
In: |
lib/merb-core/server.rb
|
Parent: | Object |
port<~to_s>: | The port of the Merb process to kill. |
sig<~to_s>: | The signal to send to the process, the default is 9 - SIGKILL. |
No Name Default Action Description 1 SIGHUP terminate process terminal line hangup 2 SIGINT terminate process interrupt program 3 SIGQUIT create core image quit program 4 SIGILL create core image illegal instruction 9 SIGKILL terminate process kill program 15 SIGTERM terminate process software termination signal 30 SIGUSR1 terminate process User defined signal 1 31 SIGUSR2 terminate process User defined signal 2
If you pass "all" as the port, the signal will be sent to all Merb processes.
:api: private
Gets the pid file for the specified port/socket.
port<~to_s>: | The port/socket of the Merb process to whom the the PID file belongs to. |
String: | Location of pid file for specified port. If clustered and pid_file option is specified, it adds the port/socket value to the path. |
:api: private
Get a list of the pid files.
Array: | List of pid file paths. If not running clustered, the array contains a single path. |
:api: private
Removes a PID file used by the server from the filesystem. This uses :pid_file options from configuration when provided or merb.<port/socket>.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/socket based PID file.
:api: private
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.
:api: private
Stores a PID file on the filesystem. This uses :pid_file options from configuration when provided or merb.<port/socket>.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/socket based PID file.
:api: private
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/socket based PID file.
:api: private