Revision 66234263

b/lib/tools/node_daemon_setup.py
216 216
        not opts.dry_run):
217 217
      logging.info("Restarting node daemon ...")
218 218

  
219
      cmd = ("%s stop-all; %s start %s" %
220
             (pathutils.DAEMON_UTIL, pathutils.DAEMON_UTIL, constants.NODED))
219
      stop_cmd = "%s stop-all" % pathutils.DAEMON_UTIL
220
      noded_cmd = "%s start %s" % (pathutils.DAEMON_UTIL, constants.NODED)
221
      mond_cmd = ""
222
      if constants.ENABLE_MOND:
223
        mond_cmd = "%s start %s" % (pathutils.DAEMON_UTIL, constants.MOND)
224

  
225
      cmd = "; ".join([stop_cmd, noded_cmd, mond_cmd])
221 226

  
222 227
      result = utils.RunCmd(cmd, interactive=True)
223 228
      if result.failed:
224
        raise SetupError("Could not start the node daemon, command '%s'"
229
        raise SetupError("Could not start the node daemons, command '%s'"
225 230
                         " failed: %s" % (result.cmd, result.fail_reason))
226 231

  
227 232
    logging.info("Node daemon successfully configured")

Also available in: Unified diff