1
0
Fork 0
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:
Eugene Korbut 2015-10-28 13:18:28 +01:00
parent d56ad84642
commit a1f3c01c1b

View file

@ -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