Revision 1c65840b lib/backend.py

b/lib/backend.py
47 47
  return ssh.SshRunner()
48 48

  
49 49

  
50
def StartMaster():
50
def StartMaster(start_daemons):
51 51
  """Activate local node as master node.
52 52

  
53
  There are two needed steps for this:
54
    - run the master script
55
    - register the cron script
53
  The function will always try activate the IP address of the master
54
  (if someone else has it, then it won't). Then, if the start_daemons
55
  parameter is True, it will also start the master daemons
56
  (ganet-masterd and ganeti-rapi).
56 57

  
57 58
  """
58 59
  result = utils.RunCmd([constants.MASTER_SCRIPT, "-d", "start"])
......
65 66
  return True
66 67

  
67 68

  
68
def StopMaster():
69
def StopMaster(stop_daemons):
69 70
  """Deactivate this node as master.
70 71

  
71
  This runs the master stop script.
72
  The function will always try to deactivate the IP address of the
73
  master. Then, if the stop_daemons parameter is True, it will also
74
  stop the master daemons (ganet-masterd and ganeti-rapi).
72 75

  
73 76
  """
74 77
  result = utils.RunCmd([constants.MASTER_SCRIPT, "-d", "stop"])

Also available in: Unified diff