Module: Einhorn::State

Extended by:
AbstractState
Defined in:
lib/einhorn.rb

Class Method Summary collapse

Methods included from AbstractState

default_state, method_missing, state, state=

Class Method Details

.default_stateObject



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/einhorn.rb', line 33

def self.default_state
  {
    :children => {},
    :config => {:number => 1, :backlog => 100, :seconds => 1},
    :versions => {},
    :version => 0,
    :sockets => {},
    :orig_cmd => nil,
    :bind => [],
    :bind_fds => [],
    :cmd => nil,
    :script_name => nil,
    :respawn => true,
    :upgrading => false,
    :reloading_for_preload_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
  }
end