mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
Update to print info on exit term signals handled
This commit is contained in:
parent
0bcd83576f
commit
e751684aa3
1 changed files with 1 additions and 0 deletions
1
app.js
1
app.js
|
@ -648,6 +648,7 @@ process.on('uncaughtException', function (err) {
|
||||||
|
|
||||||
// install exit handler
|
// install exit handler
|
||||||
function handleTermSignals () {
|
function handleTermSignals () {
|
||||||
|
logger.info('hackmd has been killed by signal, try to exit gracefully...')
|
||||||
config.maintenance = true
|
config.maintenance = true
|
||||||
// disconnect all socket.io clients
|
// disconnect all socket.io clients
|
||||||
Object.keys(io.sockets.sockets).forEach(function (key) {
|
Object.keys(io.sockets.sockets).forEach(function (key) {
|
||||||
|
|
Loading…
Reference in a new issue