String configFileName = parseConfigFileName(args, CruiseControlController.DEFAULT_CONFIG_FILE_NAME);
controller.setConfigFile(new File(configFileName));
if (shouldStartController(args)) {
CruiseControlControllerAgent agent = new CruiseControlControllerAgent(controller, parsePort(args));
agent.start();
}
controller.resume();
} catch (CruiseControlException e) {
LOG.fatal(e.getMessage());
usage();