mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
handle SIGTERM in filestore
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user