diff options
Diffstat (limited to 'tests/cluster.rc')
-rw-r--r-- | tests/cluster.rc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/cluster.rc b/tests/cluster.rc index 96ca722f273..34f5b02398f 100644 --- a/tests/cluster.rc +++ b/tests/cluster.rc @@ -90,6 +90,20 @@ function kill_glusterd() { kill `cat $pidfile`; } +function restart_glusterd() { + local index=$1 + local b + local pidfile + local g + + b="B$index" + pidfile="${!b}/glusterd.pid" + + kill `cat $pidfile` + + g="glusterd_${index}" + ${!g} +} function kill_node() { local index=$1; |