Class God::Conditions::ProcessExits
In: lib/god/conditions/process_exits.rb
Parent: EventCondition

Trigger when a process exits.

    +pid_file+ is the pid file of the process in question. Automatically
               populated for Watches.

Examples

  # Trigger if process exits (from a Watch).
  on.condition(:process_exits)

  # Trigger if process exits (non-Watch).
  on.condition(:process_exits) do |c|
    c.pid_file = "/var/run/mongrel.3000.pid"
  end

Methods

deregister   new   pid   register   valid?  

Attributes

pid_file  [RW]  The String PID file location of the process in question. Automatically populated for Watches.

Public Class methods

Public Instance methods

[Validate]