class Puma::Launcher

def write_state

the server
Write a state file that can be used by pumactl to control
def write_state
  write_pid
  path = @options[:state]
  return unless path
  require 'puma/state_file'
  sf = StateFile.new
  sf.pid = Process.pid
  sf.control_url = @options[:control_url]
  sf.control_auth_token = @options[:control_auth_token]
  sf.save path
end