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]
  permission = @options[:state_permission]
  return unless path
  require_relative 'state_file'
  sf = StateFile.new
  sf.pid = Process.pid
  sf.control_url = @options[:control_url]
  sf.control_auth_token = @options[:control_auth_token]
  sf.running_from = File.expand_path('.')
  sf.save path, permission
end