module Puma::Daemon::Runner

Attributes

options[R]

Public Instance Methods

daemon?() click to toggle source
# File lib/puma/daemon/runner.rb, line 16
def daemon?
  options[:daemon]
end
daemonize!() click to toggle source
# File lib/puma/daemon/runner.rb, line 20
def daemonize!
  log "*  Puma Daemon: Daemonizing (puma-daemon v#{::Puma::Daemon::VERSION})..."
  Process.daemon(true)
end
log(str) click to toggle source
Calls superclass method
# File lib/puma/daemon/runner.rb, line 25
def log(str)
  super(str) unless str == 'Use Ctrl-C to stop'
end
redirect_io() click to toggle source
Calls superclass method
# File lib/puma/daemon/runner.rb, line 10
def redirect_io
  super

  daemonize! if daemon?
end