Module Rbg
In: lib/rbg/config.rb
lib/rbg.rb

Methods

Classes and Modules

Class Rbg::Config
Class Rbg::Error

Attributes

child_processes  [RW]   An array of child PIDs for the current process which have been spawned
config_file  [RW]  The path to the config file that was specified

Public Class methods

Return a configration object for this backgroundable application.

Fork a single worker

Wrapper to fork multiple workers

Kill a given child process

Kill all child processes

Load or reload the config file defined at startup

Return a logger object for this application

This is the master process, it spawns some workers then loops

Get the PID from the pidfile defined in the config

Reload the running instance

Creates a ‘parent’ process. This is responsible for executing ‘before_fork’ and then forking the worker processes.

Stop the running instance

[Validate]