diff --git a/services/filestore/app.coffee b/services/filestore/app.coffee index 2638787b83..d76d53a993 100644 --- a/services/filestore/app.coffee +++ b/services/filestore/app.coffee @@ -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()