summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2017-03-22 15:31:39 +0800
committerWu Cheng-Han2017-03-22 15:31:39 +0800
commite751684aa3b144f46ab7e16360a54356c2f555a8 (patch)
tree3c865467948e1fc1e72176760fb7ec0ea218f967
parent0bcd83576f95435fa008f185a3993158d7e64ce6 (diff)
Update to print info on exit term signals handled
-rw-r--r--app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app.js b/app.js
index 1820359f..72921583 100644
--- a/app.js
+++ b/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) {