function exitOnSignal(signal) {
    process.on(signal, function () {
        logger.warn("Caught " + signal + ", shutting down");
        process.exit(1);
    });
}
/**
 * Add a signal listener to exit gently.
 *
 * @param signal - The signal to listen for.
 */
Add a signal listener to exit gently.
@param signal - The signal to listen for.
Add a signal listener to exit gently . @param signal - The signal to listen for .
function exitOnSignal(signal) {
    process.on(signal, function () {
        logger.warn("Caught " + signal + ", shutting down");
        process.exit(1);
    });
}
function exitOnSignal ( signal ) { process . on ( signal , function ( ) { logger . warn ( "Caught " + signal + ", shutting down" ) ; process . exit ( 1 ) ; } ) ; }
Add a signal listener to exit gently.
Add a signal listener to exit gently .