} else {
pathname = INSTALL_BIN_PATH "/lttng-relayd";
}
- if (!check_relayd() && spawn_relayd(pathname, 0) < 0) {
+ if (!opt_url && !opt_data_url && !check_relayd() &&
+ spawn_relayd(pathname, 0) < 0) {
goto error;
}
ret = lttng_create_session_live(session_name, url, opt_live_timer);
}
}
+ /* TODO: mi support */
+ if (lttng_opt_mi) {
+ ret = -LTTNG_ERR_MI_NOT_IMPLEMENTED;
+ ERR("mi option not supported");
+ goto end;
+ }
+
if (opt_no_consumer) {
MSG("The option --no-consumer is obsolete. Use --no-output now.");
ret = CMD_WARNING;