mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
NodeBB will now listen to SIGINT signal
This commit is contained in:
@@ -44,6 +44,16 @@ if(nconf.get('ssl')) {
|
|||||||
|
|
||||||
module.exports.server = server;
|
module.exports.server = server;
|
||||||
|
|
||||||
|
// Signals
|
||||||
|
process.on('SIGINT', function() {
|
||||||
|
winston.info('[app] Shutdown Initialised.');
|
||||||
|
db.close();
|
||||||
|
winston.info('[app] Database connection closed.');
|
||||||
|
|
||||||
|
winston.info('[app] Goodbye!');
|
||||||
|
process.exit();
|
||||||
|
});
|
||||||
|
|
||||||
(function (app) {
|
(function (app) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user