Method: Itsi::Server::Config.reload_exec

Defined in:
lib/itsi/server/config.rb

.reload_exec(listener_info) ⇒ Object

Reloads the entire process using exec, passing in any active file descriptors and previous invocation arguments



215
216
217
218
219
220
221
# File 'lib/itsi/server/config.rb', line 215

def self.reload_exec(listener_info)
  if ENV["BUNDLE_BIN_PATH"]
    exec "bundle", "exec", $PROGRAM_NAME, *@argv, "--listeners", listener_info
  else
    exec $PROGRAM_NAME, *@argv, "--listeners", listener_info
  end
end