@@ -269,7 +269,7 @@ function start_lttng_relayd_opt()
269
269
270
270
DIR=$( readlink -f $TESTDIR )
271
271
272
- if [ -z $( pidof lt-$RELAYD_BIN ) ]; then
272
+ if [ -z $( pgrep --full lt-$RELAYD_BIN ) ]; then
273
273
$DIR /../src/bin/lttng-relayd/$RELAYD_BIN -b $opt 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST
274
274
# $DIR/../src/bin/lttng-relayd/$RELAYD_BIN $opt -vvv >>/tmp/relayd.log 2>&1 &
275
275
if [ $? -eq 1 ]; then
@@ -301,7 +301,7 @@ function stop_lttng_relayd_opt()
301
301
{
302
302
local withtap=$1
303
303
304
- PID_RELAYD=` pidof lt-$RELAYD_BIN `
304
+ PID_RELAYD=` pgrep --full lt-$RELAYD_BIN `
305
305
306
306
if [ $withtap -eq " 1" ]; then
307
307
diag " Killing lttng-relayd (pid: $PID_RELAYD )"
@@ -317,7 +317,7 @@ function stop_lttng_relayd_opt()
317
317
else
318
318
out=1
319
319
while [ -n " $out " ]; do
320
- out=$( pidof lt-$RELAYD_BIN )
320
+ out=$( pgrep --full lt-$RELAYD_BIN )
321
321
sleep 0.5
322
322
done
323
323
if [ $withtap -eq " 1" ]; then
@@ -359,7 +359,7 @@ function start_lttng_sessiond_opt()
359
359
: ${LTTNG_SESSION_CONFIG_XSD_PATH=${DIR} / ../ src/ common/ config/ }
360
360
export LTTNG_SESSION_CONFIG_XSD_PATH
361
361
362
- if [ -z $( pidof lt-$SESSIOND_BIN ) ]; then
362
+ if [ -z $( pgrep --full lt-$SESSIOND_BIN ) ]; then
363
363
# Have a load path ?
364
364
if [ -n " $load_path " ]; then
365
365
$DIR /../src/bin/lttng-sessiond/$SESSIOND_BIN --load " $1 " --background --consumerd32-path=" $DIR /../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path=" $DIR /../src/bin/lttng-consumerd/lttng-consumerd"
@@ -395,7 +395,7 @@ function stop_lttng_sessiond_opt()
395
395
return
396
396
fi
397
397
398
- PID_SESSIOND=` pidof lt-$SESSIOND_BIN `
398
+ PID_SESSIOND=` pgrep --full lt-$SESSIOND_BIN `
399
399
400
400
if [ -n " $2 " ]; then
401
401
kill_opt=" $kill_opt -s $signal "
@@ -410,12 +410,12 @@ function stop_lttng_sessiond_opt()
410
410
else
411
411
out=1
412
412
while [ -n " $out " ]; do
413
- out=$( pidof lt-$SESSIOND_BIN )
413
+ out=$( pgrep --full lt-$SESSIOND_BIN )
414
414
sleep 0.5
415
415
done
416
416
out=1
417
417
while [ -n " $out " ]; do
418
- out=$( pidof $CONSUMERD_BIN )
418
+ out=$( pgrep --full $CONSUMERD_BIN )
419
419
sleep 0.5
420
420
done
421
421
if [ $withtap -eq " 1" ]; then
@@ -440,7 +440,7 @@ function stop_lttng_consumerd_opt()
440
440
local signal=$2
441
441
local kill_opt=" "
442
442
443
- PID_CONSUMERD=` pidof $CONSUMERD_BIN `
443
+ PID_CONSUMERD=` pgrep --full $CONSUMERD_BIN `
444
444
445
445
if [ -n " $2 " ]; then
446
446
kill_opt=" $kill_opt -s $signal "
@@ -461,7 +461,7 @@ function stop_lttng_consumerd_opt()
461
461
else
462
462
out=1
463
463
while [ $out -ne 0 ]; do
464
- pid=$( pidof $CONSUMERD_BIN )
464
+ pid=$( pgrep --full $CONSUMERD_BIN )
465
465
466
466
# If consumerds are still present check their status.
467
467
# A zombie status qualifies the consumerd as *killed*
0 commit comments