handle SIGTERM in filestore

This commit is contained in:
Brian Gough 2015-01-07 10:28:47 +00:00
parent 02101868e1
commit 191d0a4986

View file

@ -126,3 +126,7 @@ beginShutdown = () ->
server.listen port, host, ->
logger.log("filestore store listening on #{host}:#{port}")
process.on 'SIGTERM', () ->
logger.log("filestore got SIGTERM, shutting down gracefully")
beginShutdown()