1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/tests/simple/99_daemons_shutdown.sh
Martin Schwenke f05db5edc4 ctdb/tests/integration: Update daemons shutdown pseudo-test
Don't scatter the TEST_LOCAL_DAEMONS logic around the code.  Limit it
to the local daemons file.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-12-05 00:43:12 +01:00

24 lines
553 B
Bash
Executable File

#!/bin/bash
test_info()
{
cat <<EOF
If we running local daemons and TEST_CLEANUP is true then shutdown the daemons.
No error if ctdbd is not already running on the cluster.
Prerequisites:
* Nodes must be accessible via 'onnode'.
EOF
}
. "${TEST_SCRIPTS_DIR}/integration.bash"
# Do not call ctdb_test_init() here. It will setup ctdb_test_exit()
# to run and that will find the daemons missing and restart them!
# We only want to consider stopping CTDB if we're running local
# daemons. This function will do the right thing.
maybe_stop_ctdb