s3:utils: Fix 'Usage:' for 'net ads enctypes'
[samba4-gss.git] / ctdb / tests / scripts / integration_real_cluster.bash
bloba1f05aa68b49a4821f2702aa9e49b1028ffb111d
1 # Hey Emacs, this is a -*- shell-script -*- !!! :-)
3 #######################################
5 # Enables all of the event scripts used in cluster tests, except for
6 # the mandatory scripts
7 _ctdb_enable_cluster_test_event_scripts ()
9 local scripts="
10 10.interface
11 49.winbind
12 50.samba
13 60.nfs
16 local s
17 for s in $scripts ; do
18 try_command_on_node all ctdb event script enable legacy "$s"
19 done
22 setup_ctdb ()
24 _ctdb_enable_cluster_test_event_scripts
27 #######################################
29 _service_ctdb ()
31 cmd="$1"
33 if [ -e /etc/redhat-release ] ; then
34 service ctdb "$cmd"
35 else
36 /etc/init.d/ctdb "$cmd"
40 # Stop/start CTDB on all nodes. Override for local daemons.
41 ctdb_nodes_stop ()
43 local nodespec="${1:-all}"
45 onnode -p "$nodespec" "$CTDB_TEST_WRAPPER" _service_ctdb stop
47 ctdb_nodes_start ()
49 local nodespec="${1:-all}"
51 onnode -p "$nodespec" "$CTDB_TEST_WRAPPER" _service_ctdb start