mirror of https://github.com/status-im/codimd.git
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…
Reference in New Issue