1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2025-06-26 12:30:18 +02:00

Stop on SIGTERM

This commit is contained in:
cn
2013-10-08 13:25:35 +02:00
parent b2a408acba
commit d7b2250923
2 changed files with 9 additions and 5 deletions

View File

@ -190,6 +190,10 @@ module Dyndnsd
Dyndnsd.logger.info "Quitting..."
Rack::Handler::WEBrick.shutdown
end
Signal.trap('TERM') do
Dyndnsd.logger.info "Quitting..."
Rack::Handler::WEBrick.shutdown
end
Rack::Handler::WEBrick.run app, :Host => config['host'], :Port => config['port']
end