Merge branch 'master' of ctdb into 'master' of samba
[samba.git] / ctdb / tests / simple / 99_daemons_shutdown.sh
1 #!/bin/bash
2
3 test_info()
4 {
5     cat <<EOF
6 If we running local daemons and TEST_CLEANUP is true then shutdown the daemons.
7
8 No error if ctdbd is not already running on the cluster.
9
10 Prerequisites:
11
12 * Nodes must be accessible via 'onnode'.
13 EOF
14 }
15
16 . "${TEST_SCRIPTS_DIR}/integration.bash"
17
18 # Do not call ctdb_test_init() here.  It will setup ctdb_test_exit()
19 # to run and that will find the daemons missing and restart them!
20
21 if [ -n "$TEST_LOCAL_DAEMONS" ] && $TEST_CLEANUP ; then
22     daemons_stop
23 fi