mirror of
https://github.com/status-im/codimd.git
synced 2025-01-27 02:46:28 +00:00
Update to print info on exit term signals handled
This commit is contained in:
parent
0bcd83576f
commit
e751684aa3
1
app.js
1
app.js
@ -648,6 +648,7 @@ process.on('uncaughtException', function (err) {
|
||||
|
||||
// install exit handler
|
||||
function handleTermSignals () {
|
||||
logger.info('hackmd has been killed by signal, try to exit gracefully...')
|
||||
config.maintenance = true
|
||||
// disconnect all socket.io clients
|
||||
Object.keys(io.sockets.sockets).forEach(function (key) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user