1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Parse command-line options for pumactl (#1482)

* Parse command-line options for pumactl

Before, we would remove any non-yielding
args, but missed to actually parse them.
Resulting in issues like, --pidfile or
similar args not taking any effect.

* Remove misleading message of puma starting on pumactl exit

This way, when puma shuts down (running from pumactl), it does not end
with "Puma is started" message. Because, the copy is dependent
on the value of `@command`, the same will always point
to `start`, if pumactl was issued a `start`, hence during
exit, this message appeared as misleading.
This commit is contained in:
Shayon Mukherjee 2018-03-19 13:51:45 -07:00 committed by Nate Berkopec
parent 44932e9d4a
commit 9faca801b0

View file

@ -69,6 +69,7 @@ module Puma
end
opts.order!(argv) { |a| opts.terminate a }
opts.parse!
@command = argv.shift
@ -204,7 +205,6 @@ module Puma
Process.kill "SIGUSR1", @pid
else
message "Puma is started"
return
end