lib/openvpn-status-web.rb in openvpn-status-web-1.0.1 vs lib/openvpn-status-web.rb in openvpn-status-web-1.1.0

- old
+ new

@@ -118,9 +118,13 @@ Signal.trap('INT') do OpenVPNStatusWeb.logger.info "Quitting..." Rack::Handler::WEBrick.shutdown 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'] end end end