module Einhorn::State

Public Class Methods

default_state() click to toggle source

WARNING: Don't change or remove these variables without thinking about backwards/forwards compatibility for upgrades/downgrades

# File lib/einhorn.rb, line 38
def self.default_state
  {
    :children => {},
    :config => {:number => 1, :backlog => 100, :seconds => 1},
    :versions => {},
    :version => 0,
    :sockets => {},
    :orig_cmd => nil,
    :bind => [],
    :bind_fds => [],
    :bound_ports => [],
    :cmd => nil,
    :script_name => nil,
    :respawn => true,
    :upgrading => false,
    :smooth_upgrade => false,
    :reloading_for_upgrade => false,
    :path => nil,
    :cmd_name => nil,
    :verbosity => 1,
    :generation => 0,
    :last_spinup => nil,
    :ack_mode => {:type => :timer, :timeout => 1},
    :kill_children_on_exit => false,
    :command_socket_as_fd => false,
    :socket_path => nil,
    :pidfile => nil,
    :lockfile => nil,
    :consecutive_deaths_before_ack => 0,
    :last_upgraded => nil,
    :nice => {:master => nil, :worker => nil, :renice_cmd => '/usr/bin/renice'},
    :reexec_commandline => nil,
    :drop_environment_variables => [],
    :signal_timeout => nil,
    :preloaded => false
  }
end