Esempio n. 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()
Esempio n. 2
0
File: rapi.py Progetto: 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()