This is clearer if the logic is explicit... and...
There are too many functions to start/stop daemons. Simplify this.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
# 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
+if [ -n "$TEST_LOCAL_DAEMONS" ] ; then
+ ctdb_stop_all
+fi