mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Pumactl: set correct process name. Fixes #563
This commit is contained in:
parent
d56ad84642
commit
a1f3c01c1b
1 changed files with 4 additions and 0 deletions
|
@ -262,6 +262,10 @@ module Puma
|
|||
|
||||
events = Puma::Events.new @stdout, @stderr
|
||||
|
||||
# replace $0 because puma use it to generate restart command
|
||||
puma_cmd = $0.gsub /pumactl$/, 'puma'
|
||||
$0 = puma_cmd if File.exist?(puma_cmd)
|
||||
|
||||
cli = Puma::CLI.new run_args, events
|
||||
cli.run
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue