mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
d955485e7b
(This used to be ctdb commit 0d7a71f35bb8ce95231f8ca1e8e3e4024fe657e5)
24 lines
398 B
Bash
Executable File
24 lines
398 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#!/bin/sh
|
|
|
|
killall -q ctdb_messaging
|
|
|
|
NUMNODES=2
|
|
if [ $# -gt 0 ]; then
|
|
NUMNODES=$1
|
|
fi
|
|
|
|
rm -f nodes.txt
|
|
for i in `seq 1 $NUMNODES`; do
|
|
echo 127.0.0.$i:9001 >> nodes.txt
|
|
done
|
|
|
|
killall -9 ctdb_messaging
|
|
echo "Trying $NUMNODES nodes"
|
|
for i in `seq 1 $NUMNODES`; do
|
|
$VALGRIND bin/ctdb_messaging --nlist nodes.txt --listen 127.0.0.$i:9001 --socket /tmp/ctdb.127.0.0.$i $* &
|
|
done
|
|
|
|
wait
|