Mi: mi backend + mi for command version
[lttng-tools.git] / src / bin / lttng / commands / create.c
index 4a47d6714f8f9b38f6f48b5f6363bfa1e4e17125..c43ce59b906c7a5f43db8e5fed1f709262951ac6 100644 (file)
@@ -387,7 +387,8 @@ static int create_session(void)
                } 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);
@@ -514,6 +515,13 @@ int cmd_create(int argc, const char **argv)
                }
        }
 
+       /* 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;
This page took 0.03333 seconds and 4 git commands to generate.