mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Merge pull request #791 from unleashed/allow_empty_tags
configuration: allow empty tags to mean no tag desired
This commit is contained in:
commit
264dc0583c
3 changed files with 5 additions and 2 deletions
|
@ -144,6 +144,9 @@
|
||||||
# Additional text to display in process listing
|
# Additional text to display in process listing
|
||||||
#
|
#
|
||||||
# tag 'app name'
|
# tag 'app name'
|
||||||
|
#
|
||||||
|
# If you do not specify a tag, Puma will infer it. If you do not want Puma
|
||||||
|
# to add a tag, use an empty string.
|
||||||
|
|
||||||
# Change the default timeout of workers
|
# Change the default timeout of workers
|
||||||
#
|
#
|
||||||
|
|
|
@ -266,7 +266,7 @@ module Puma
|
||||||
private
|
private
|
||||||
def title
|
def title
|
||||||
buffer = "puma #{Puma::Const::VERSION} (#{@options[:binds].join(',')})"
|
buffer = "puma #{Puma::Const::VERSION} (#{@options[:binds].join(',')})"
|
||||||
buffer << " [#{@options[:tag]}]" if @options[:tag]
|
buffer << " [#{@options[:tag]}]" if @options[:tag] && !@options[:tag].empty?
|
||||||
buffer
|
buffer
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ module Puma
|
||||||
|
|
||||||
def worker(index, master)
|
def worker(index, master)
|
||||||
title = "puma: cluster worker #{index}: #{master}"
|
title = "puma: cluster worker #{index}: #{master}"
|
||||||
title << " [#{@options[:tag]}]" if @options[:tag]
|
title << " [#{@options[:tag]}]" if @options[:tag] && !@options[:tag].empty?
|
||||||
$0 = title
|
$0 = title
|
||||||
|
|
||||||
Signal.trap "SIGINT", "IGNORE"
|
Signal.trap "SIGINT", "IGNORE"
|
||||||
|
|
Loading…
Reference in a new issue