Class God::Process
In: lib/god/process.rb
Parent: Object

Methods

Constants

WRITES_PID = [:start, :restart]

Attributes

gid  [RW] 
log  [RW] 
name  [RW] 
restart  [RW] 
start  [RW] 
stop  [RW] 
uid  [RW] 

Public Class methods

Public Instance methods

Ensure that a stop command actually stops the process. Force kill if necessary.

Returns nothing

Fetch the PID from pid_file. If the pid_file does not exist, then use the PID from the last time it was read. If it has never been read, then return nil.

Returns Integer(pid) or nil

DON‘T USE THIS INTERNALLY. Use the instance variable. — Kev No really, trust me. Use the instance variable.

Fork/exec the given command, returns immediately

  +command+ is the String containing the shell command

Returns nothing

[Validate]