Test: Add the lttng-runas worker process to the sessiond pids
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 10 Mar 2016 19:23:28 +0000 (14:23 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 10 Mar 2016 21:35:29 +0000 (16:35 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/utils.sh

index 2cadd58002907605e0ee6cb01b315f8cc2d4c246..fe834cfaf47b1b2c3e394a20e880c987a4f15276 100644 (file)
@@ -16,6 +16,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 
 SESSIOND_BIN="lttng-sessiond"
 # 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 
 SESSIOND_BIN="lttng-sessiond"
+RUNAS_BIN="lttng-runas"
 CONSUMERD_BIN="lttng-consumerd"
 RELAYD_BIN="lttng-relayd"
 LTTNG_BIN="lttng"
 CONSUMERD_BIN="lttng-consumerd"
 RELAYD_BIN="lttng-relayd"
 LTTNG_BIN="lttng"
@@ -411,7 +412,7 @@ function stop_lttng_sessiond_opt()
                return
        fi
 
                return
        fi
 
-       PID_SESSIOND=`pgrep --full lt-$SESSIOND_BIN`
+       PID_SESSIOND="$(pgrep --full lt-$SESSIOND_BIN) $(pgrep --full $RUNAS_BIN)"
 
        if [ -n "$2" ]; then
                kill_opt="$kill_opt -s $signal"
 
        if [ -n "$2" ]; then
                kill_opt="$kill_opt -s $signal"
@@ -463,7 +464,7 @@ function sigstop_lttng_sessiond_opt()
                return
        fi
 
                return
        fi
 
-       PID_SESSIOND=`pgrep --full lt-$SESSIOND_BIN`
+       PID_SESSIOND="$(pgrep --full lt-$SESSIOND_BIN) $(pgrep --full $RUNAS_BIN)"
 
        kill_opt="$kill_opt -s $signal"
 
 
        kill_opt="$kill_opt -s $signal"
 
This page took 0.028083 seconds and 5 git commands to generate.