mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2024-12-22 22:54:24 +01:00
React to SIGTERM
This commit is contained in:
parent
d5f8d66422
commit
a852aa4b4d
@ -120,6 +120,10 @@ module OpenVPNStatusWeb
|
|||||||
OpenVPNStatusWeb.logger.info "Quitting..."
|
OpenVPNStatusWeb.logger.info "Quitting..."
|
||||||
Rack::Handler::WEBrick.shutdown
|
Rack::Handler::WEBrick.shutdown
|
||||||
end
|
end
|
||||||
|
Signal.trap('TERM') do
|
||||||
|
OpenVPNStatusWeb.logger.info "Quitting..."
|
||||||
|
Rack::Handler::WEBrick.shutdown
|
||||||
|
end
|
||||||
|
|
||||||
Rack::Handler::WEBrick.run app, :Host => config['host'], :Port => config['port']
|
Rack::Handler::WEBrick.run app, :Host => config['host'], :Port => config['port']
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user