summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/simple/scripts
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-11-29 14:07:43 +1100
committerMichael Adam <obnox@samba.org>2013-12-05 00:43:55 +0100
commitf67a1043b381f623ec9c97ac137568ca7ab6cd8a (patch)
treeb6180d84f76255466c6b348fa197435dcc3ba03d /ctdb/tests/simple/scripts
parentf05db5edc434da61bc7cd7233c5b9cb61cd888bf (diff)
ctdb/tests/integration: Decentralise the daemon restart code
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'ctdb/tests/simple/scripts')
-rw-r--r--ctdb/tests/simple/scripts/local_daemons.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/tests/simple/scripts/local_daemons.bash b/ctdb/tests/simple/scripts/local_daemons.bash
index 6bd2138a82..7c3407f8aa 100644
--- a/ctdb/tests/simple/scripts/local_daemons.bash
+++ b/ctdb/tests/simple/scripts/local_daemons.bash
@@ -127,3 +127,9 @@ maybe_stop_ctdb ()
daemons_stop
fi
}
+
+_restart_ctdb_all ()
+{
+ daemons_stop
+ daemons_start "$@"
+}