index.js
function serverClose (signal, done) {
  _logger.info('Process received ' + signal + ', exiting ....')
  if (done === undefined) {
    done = function () {
      process.exit(0)
    }
  }
  if (server) {
    server.close(done)
  } else {
    done()
  }
}
function serverClose (signal, done) {
  _logger.info('Process received ' + signal + ', exiting ....')
  if (done === undefined) {
    done = function () {
      process.exit(0)
    }
  }
  if (server) {
    server.close(done)
  } else {
    done()
  }
}
function serverClose ( signal , done ) { _logger . info ( 'Process received ' + signal + ', exiting ....' ) if ( done === undefined ) { done = function ( ) { process . exit ( 0 ) } } if ( server ) { server . close ( done ) } else { done ( ) } }
Closing the server
@param signal the log message depending on the given signal.
Closing the server