Beispiel #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()
Beispiel #2
0
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()