src/http/app.js
function registerListeners() {
  const exit = function exit(signal) {
    console.log(chalk.bgBlack.yellow(`Received ${signal} => Exiting`))
    process.exit()
  }
  const SIGABRT = 'SIGABRT'
  const SIGHUP = 'SIGHUP'
  const SIGINT = 'SIGINT'
  const SIGQUIT = 'SIGQUIT'
  const SIGTERM = 'SIGTERM'

  process.on(SIGABRT, () => exit(SIGABRT))
  process.on(SIGHUP, () => exit(SIGHUP))
  process.on(SIGINT, () => exit(SIGINT))
  process.on(SIGQUIT, () => exit(SIGQUIT))
  process.on(SIGTERM, () => exit(SIGTERM))
}
function registerListeners() {
  const exit = function exit(signal) {
    console.log(chalk.bgBlack.yellow(`Received ${signal} => Exiting`))
    process.exit()
  }
  const SIGABRT = 'SIGABRT'
  const SIGHUP = 'SIGHUP'
  const SIGINT = 'SIGINT'
  const SIGQUIT = 'SIGQUIT'
  const SIGTERM = 'SIGTERM'

  process.on(SIGABRT, () => exit(SIGABRT))
  process.on(SIGHUP, () => exit(SIGHUP))
  process.on(SIGINT, () => exit(SIGINT))
  process.on(SIGQUIT, () => exit(SIGQUIT))
  process.on(SIGTERM, () => exit(SIGTERM))
}
function registerListeners ( ) { const exit = function exit ( signal ) { console . log ( chalk . bgBlack . yellow ( ` ${ signal } ` ) ) process . exit ( ) } const SIGABRT = 'SIGABRT' const SIGHUP = 'SIGHUP' const SIGINT = 'SIGINT' const SIGQUIT = 'SIGQUIT' const SIGTERM = 'SIGTERM' process . on ( SIGABRT , ( ) => exit ( SIGABRT ) ) process . on ( SIGHUP , ( ) => exit ( SIGHUP ) ) process . on ( SIGINT , ( ) => exit ( SIGINT ) ) process . on ( SIGQUIT , ( ) => exit ( SIGQUIT ) ) process . on ( SIGTERM , ( ) => exit ( SIGTERM ) ) }
Register process signal listeners
@return {undefined}
Register process signal listeners