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
()
17 for s
in $scripts ; do
18 try_command_on_node all ctdb event
script enable legacy
"$s"
24 _ctdb_enable_cluster_test_event_scripts
27 #######################################
33 if [ -e /etc
/redhat-release
] ; then
36 /etc
/init.d
/ctdb
"$cmd"
40 # Stop/start CTDB on all nodes. Override for local daemons.
43 local nodespec
="${1:-all}"
45 onnode
-p "$nodespec" "$CTDB_TEST_WRAPPER" _service_ctdb stop
49 local nodespec
="${1:-all}"
51 onnode
-p "$nodespec" "$CTDB_TEST_WRAPPER" _service_ctdb start