X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fcreate.c;h=e02b141420c075a1c0e687befade8192eb0d4721;hp=4a47d6714f8f9b38f6f48b5f6363bfa1e4e17125;hb=2c521c63a46d6c79a7819a822d109ccdd48b6064;hpb=83b7c3bf7a5c28883396af5dadd6ee469f20aa59 diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 4a47d6714..e02b14142 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -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);