Method: Puma::DSL#raise_exception_on_sigterm

Defined in:
lib/puma/dsl.rb

#raise_exception_on_sigterm(answer = true) ⇒ Object

By default, Puma will raise SignalException when SIGTERM is received. In environments where SIGTERM is something expected, you can suppress these with this option.

This can be useful for example in Kubernetes, where rolling restart is guaranteed usually on infrastructure level.

Examples:

raise_exception_on_sigterm false

See Also:



856
857
858
# File 'lib/puma/dsl.rb', line 856

def raise_exception_on_sigterm(answer=true)
  @options[:raise_exception_on_sigterm] = answer
end