Revision 32ba31be

b/lib/bootstrap.py
448 448
                                                             curr_helper),
449 449
                                 errors.ECODE_INVAL)
450 450

  
451
  logging.debug("Stopping daemons (if any are running)")
452
  result = utils.RunCmd([pathutils.DAEMON_UTIL, "stop-all"])
453
  if result.failed:
454
    raise errors.OpExecError("Could not stop daemons, command %s"
455
                             " had exitcode %s and error '%s'" %
456
                             (result.cmd, result.exit_code, result.output))
457

  
451 458
  if constants.ENABLE_FILE_STORAGE:
452 459
    file_storage_dir = _InitFileStorage(file_storage_dir)
453 460
  else:

Also available in: Unified diff