summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/simple/99_daemons_shutdown.sh
blob: 42ea1f4031c34c4f3ce0739b213db65baf5480f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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