mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
handle SIGTERM in filestore
This commit is contained in:
parent
02101868e1
commit
191d0a4986
1 changed files with 4 additions and 0 deletions
|
@ -126,3 +126,7 @@ beginShutdown = () ->
|
||||||
|
|
||||||
server.listen port, host, ->
|
server.listen port, host, ->
|
||||||
logger.log("filestore store listening on #{host}:#{port}")
|
logger.log("filestore store listening on #{host}:#{port}")
|
||||||
|
|
||||||
|
process.on 'SIGTERM', () ->
|
||||||
|
logger.log("filestore got SIGTERM, shutting down gracefully")
|
||||||
|
beginShutdown()
|
||||||
|
|
Loading…
Reference in a new issue