测试信息

master
pan 4 years ago
parent 0a476ca569
commit 853a233931
  1. 10
      app.js

@ -47,9 +47,15 @@ app.use(function(err, req, res, next) {
}); });
// listen for TERM signal .e.g. kill // listen for TERM signal .e.g. kill
process.on ('SIGTERM', ()=>process.exit()); process.on ('SIGTERM', ()=>{
process.exit()
console.info('SIGTERM退出')
});
// listen for INT signal e.g. Ctrl-C // listen for INT signal e.g. Ctrl-C
process.on ('SIGINT', ()=>process.exit()); process.on ('SIGINT', ()=>{
process.exit()
console.info('SIGINT退出')
});
module.exports = app; module.exports = app;

Loading…
Cancel
Save