examples/mysql/app.js
// Trap termination signals and close gracefully
Trap termination signals and close gracefully
Trap termination signals and close gracefully
function terminate() {
    console.log('Shutting down...');
    ecosystem.stopAll(modules);
    setTimeout(process.exit, 2000);
}
function terminate ( ) { console . log ( 'Shutting down...' ) ; ecosystem . stopAll ( modules ) ; setTimeout ( process . exit , 2000 ) ; }
Trap termination signals and close gracefully
Trap termination signals and close gracefully