NodeBB will now listen to SIGINT signal

v1.18.x
Julian Lam 11 years ago
parent 3958ee4120
commit ef63d816fe

@ -44,6 +44,16 @@ if(nconf.get('ssl')) {
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) {
"use strict";

Loading…
Cancel
Save