def signal_handler(signal, frame):
  logging.warning("Caught signal: {0}".format(signal))
  IOLoop.instance().add_callback(shutdown)
Signal handler for graceful shutdown.
dataset/ETHPy150Open AppScale/appscale/Hermes/hermes.py/signal_handler