Sha256: a47d7d904bcc73f6fbc386664ef7da958cdad68e40f0261c8203d652083816bc

Contents?: true

Size: 481 Bytes

Versions: 7

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

module Puma
  module Daemon
    module DSL
      # Daemonize the server into the background. It's highly recommended to
      # use this in combination with +pidfile+ and +stdout_redirect+.
      #
      # The default is "false".
      #
      # @example
      #   daemonize
      #
      # @example
      #   daemonize false
      def daemonize(which = true)
        @options[:daemon] = which
      end

      attr_reader :options
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
puma-daemon-0.5.0 lib/puma/daemon/dsl.rb
puma-daemon-0.3.2 lib/puma/daemon/dsl.rb
puma-daemon-0.3.0 lib/puma/daemon/dsl.rb
puma-daemon-0.2.3 lib/puma/daemon/dsl.rb
puma-daemon-0.2.2 lib/puma/daemon/dsl.rb
puma-daemon-0.1.2 lib/puma/daemon/dsl.rb
puma-daemon-0.1.1 lib/puma/daemon/dsl.rb