예제 #1
0
def ExecNoded(options, args, prep_data):  # pylint: disable=W0613
    """Main node daemon function, executed with the PID file held.

  """
    (mainloop, server) = prep_data
    try:
        mainloop.Run()
    finally:
        server.Stop()
예제 #2
0
파일: rapi.py 프로젝트: azet/ganeti
def ExecRapi(options, args, prep_data): # pylint: disable=W0613
  """Main remote API function, executed with the PID file held.

  """

  (mainloop, server) = prep_data
  try:
    mainloop.Run()
  finally:
    logging.error("RAPI Daemon Failed")
    server.Stop()