shutdown in SIGTERM

master
Oliver Tonnhofer 2016-11-28 11:57:05 +01:00
parent 2abbaa3248
commit 5b132abfb1
1 changed files with 2 additions and 2 deletions

View File

@ -57,10 +57,10 @@ func Run() {
defer diffCache.Close()
sigc := make(chan os.Signal, 1)
signal.Notify(sigc, syscall.SIGTERM, syscall.SIGHUP)
signal.Notify(sigc, syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP)
shutdown := func() {
logger.Print("Exiting. (SIGTERM/SIGHUB)")
logger.Print("Exiting. (SIGTERM/SIGINT/SIGHUB)")
logging.Shutdown()
osmCache.Close()
diffCache.Close()