mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +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; | ||||
|  | ||||
| // 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"; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user