Revision 83052f9e lib/backend.py

b/lib/backend.py
298 298

  
299 299
  if stop_daemons:
300 300
    # stop/kill the rapi and the master daemon
301
    for daemon in constants.RAPI_PID, constants.MASTERD_PID:
301
    for daemon in constants.RAPI, constants.MASTERD:
302 302
      utils.KillProcess(utils.ReadPidFile(utils.DaemonPidFileName(daemon)))
303 303

  
304 304

  
......
2280 2280
  master, myself = ssconf.GetMasterAndMyself()
2281 2281
  if master == myself:
2282 2282
    _Fail("ssconf status shows I'm the master node, will not demote")
2283
  pid_file = utils.DaemonPidFileName(constants.MASTERD_PID)
2283
  pid_file = utils.DaemonPidFileName(constants.MASTERD)
2284 2284
  if utils.IsProcessAlive(utils.ReadPidFile(pid_file)):
2285 2285
    _Fail("The master daemon is running, will not demote")
2286 2286
  try:

Also available in: Unified diff