mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
46f82181d0
Only shuts them down if $TEST_CLEANUP is true. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit eddfc02335202d853e29a89f08225ab44cac8a25)
24 lines
498 B
Bash
Executable File
24 lines
498 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!
|
|
|
|
if [ -n "$TEST_LOCAL_DAEMONS" ] && $TEST_CLEANUP ; then
|
|
daemons_stop
|
|
fi
|