X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fcreate.c;h=a5f92f14a31c37ddddce57a925f4f2772cf3e38d;hb=f86c9f4e9488dfd3eebb33fbec1b6afb1cd02630;hp=2e03373266c2ca9c3d10f469bfb5da9ef3a5dfb6;hpb=d73c58020df7ccd20d1edd250b0f00f0d7d25b5b;p=lttng-tools.git diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 2e0337326..a5f92f14a 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -376,6 +376,16 @@ static int create_session(void) } ret = lttng_create_session_snapshot(session_name, snapshot_url); } else if (opt_live_timer) { + const char *pathname; + + if (opt_relayd_path) { + pathname = opt_relayd_path; + } else { + pathname = INSTALL_BIN_PATH "/lttng-relayd"; + } + if (!check_relayd() && spawn_relayd(pathname, 0) < 0) { + goto error; + } ret = lttng_create_session_live(session_name, url, opt_live_timer); } else { ret = _lttng_create_session_ext(session_name, url, datetime, -1);