mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
d8026e87f4
This allows all existing requests to finish, but does not keep the same socket alive across the exec, so this is not a graceful as it could be.
12 lines
147 B
Ruby
12 lines
147 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
require 'puma/control_cli'
|
|
|
|
cli = Puma::ControlCLI.new ARGV
|
|
|
|
begin
|
|
cli.run
|
|
rescue => e
|
|
STDERR.puts e.message
|
|
exit 1
|
|
end
|