Revision 6c948699 daemons/ganeti-masterd

b/daemons/ganeti-masterd
440 440

  
441 441
  return result
442 442

  
443
def CheckMASTERD(options, args):
444
  """Initial checks whether to run or exit with a failure
443

  
444
def CheckMasterd(options, args):
445
  """Initial checks whether to run or exit with a failure.
445 446

  
446 447
  """
447 448
  rpc.Init()
......
465 466
    rpc.Shutdown()
466 467

  
467 468

  
468
def ExecMASTERD(options, args):
469
  """Main MASTERD function, executed with the pidfile held.
469
def ExecMasterd (options, args):
470
  """Main master daemon function, executed with the PID file held.
470 471

  
471 472
  """
472 473
  # This is safe to do as the pid file guarantees against
......
512 513
          (constants.SOCKET_DIR, constants.SOCKET_DIR_MODE),
513 514
         ]
514 515
  daemon.GenericMain(constants.MASTERD, parser, dirs,
515
                     CheckMASTERD, ExecMASTERD)
516
                     CheckMasterd, ExecMasterd)
517

  
516 518

  
517 519
if __name__ == "__main__":
518 520
  main()

Also available in: Unified diff