Module: Einhorn::State

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

Class Method Summary collapse

Methods included from AbstractState

default_state, dumpable_state, method_missing, respond_to_missing?, state, state=

Class Method Details

.default_stateObject

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



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/einhorn.rb', line 56

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