3fs / geoip-lookup

Small server written in Go that responds with GeoIP data for given IP in chosen format (xml/json/html)
MIT License
4 stars 0 forks source link

Implement signals for reloading GeoLite2 database #9

Closed igoraj closed 10 years ago

igoraj commented 10 years ago

Currently when GeoLite2 database is updated server restart is needed. If signals are implemented a SIGHUP or SIGUSR should trigger reload of the database without the need of full restart.

Ref: #3

SamoB25 commented 10 years ago

Clever!

SamoB25 commented 10 years ago

Note to myself: http://golang.org/pkg/os/signal/

SamoB25 commented 10 years ago

Country data can now be reloaded using SIGHUP signal.