There are too many functions to start/stop daemons. Simplify this.
Inline the functionality into ctdb_start_all() and ctdb_stop_all().
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
onnode "$pnn" ctdbd_wrapper start
}
-daemons_start ()
+ctdb_start_all ()
{
echo "Starting $TEST_LOCAL_DAEMONS ctdb daemons..."
onnode "$pnn" ctdbd_wrapper stop
}
-daemons_stop ()
+ctdb_stop_all ()
{
echo "Stopping $TEST_LOCAL_DAEMONS ctdb daemons..."
maybe_stop_ctdb ()
{
- daemons_stop
-}
-
-ctdb_stop_all ()
-{
- daemons_stop
-}
-
-ctdb_start_all ()
-{
- daemons_start
+ ctdb_stop_all
}
# onnode will use CTDB_BASES to help the ctdb tool connection to each