1
0
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:
Martin Schwenke 2013-11-14 20:36:52 +11:00 committed by Michael Adam
parent 2f5d9be754
commit 0ae3d009f3

View File

@ -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"