handle SIGTERM in filestore

This commit is contained in:
Brian Gough
2015-01-07 10:35:17 +00:00
parent 02101868e1
commit 191d0a4986
+4
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()