Example #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()
Example #2
0
File: rapi.py Project: 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()