mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
ctdb:tests/integration: Be more careful when killing ctdbd
Also match $TEST_VAR_DIR in the socket name. This means that we'll only ever kill ctdbd process belong to our own test run. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
2f5d9be754
commit
0ae3d009f3
@ -514,7 +514,7 @@ daemons_stop ()
|
||||
echo "Sleeping for a while..."
|
||||
sleep_for 1
|
||||
|
||||
local pat="ctdbd --socket=.* --nlist .* --nopublicipcheck"
|
||||
local pat="ctdbd --socket=${TEST_VAR_DIR}/.* --nlist .* --nopublicipcheck"
|
||||
if pgrep -f "$pat" >/dev/null ; then
|
||||
echo "Killing remaining daemons..."
|
||||
pkill -f "$pat"
|
||||
|
Loading…
x
Reference in New Issue
Block a user