Allows for easier arguments passing to lttng-sessiond. This is useful
both for debugging manually and passing specific flag as needed in
testing. Passing "--event-notifier-error-number-of-bucket=X" or "-vvv"
for examples.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I36bd6eaf1c4fc84c3a1e8cfe70a37a46e7130c75
local withtap=$1
local load_path=$2
+ # The rest of the arguments will be passed directly to lttng-sessiond.
+ shift 2
+
local env_vars=""
local consumerd=""
# Have a load path ?
if [ -n "$load_path" ]; then
# shellcheck disable=SC2086
- env $env_vars --load "$load_path" --background "$consumerd"
+ env $env_vars --load "$load_path" --background "$consumerd" "$@"
else
# shellcheck disable=SC2086
- env $env_vars --background "$consumerd"
+ env $env_vars --background "$consumerd" "$@"
fi
#$DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --background --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --verbose-consumer >>/tmp/sessiond.log 2>&1
status=$?