Fix: don't spawn relayd if URL is provided
authorDavid Goulet <dgoulet@efficios.com>
Fri, 28 Mar 2014 17:19:47 +0000 (13:19 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 28 Mar 2014 17:19:47 +0000 (13:19 -0400)
In the lttng command line tool, relayd should only be spawned for the
default use case which is no URL provided.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/create.c

index 4a47d6714f8f9b38f6f48b5f6363bfa1e4e17125..e02b141420c075a1c0e687befade8192eb0d4721 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);
This page took 0.025652 seconds and 4 git commands to generate.