#!/bin/sh
-killall -q ctdb_bench
+killall -q ctdb_bench ctdbd
NUMNODES=2
if [ $# -gt 0 ]; then
echo 127.0.0.$i >> nodes.txt
done
+echo "Trying $NUMNODES nodes"
+for i in `seq 1 $NUMNODES`; do
+ $VALGRIND bin/ctdbd --reclock=rec.lock --nlist nodes.txt --event-script=tests/events --logfile=- --socket=sock.$i
+done
+
killall -9 ctdb_bench
echo "Trying $NUMNODES nodes"
for i in `seq 1 $NUMNODES`; do
- $VALGRIND bin/ctdb_bench --nlist nodes.txt --socket /tmp/ctdb.127.0.0.$i $* &
+ $VALGRIND bin/ctdb_bench --nlist nodes.txt --socket sock.$i $* &
done
wait
+ctdb shutdown --socket sock.1 -n all