5 tincd=../src/tincd@EXEEXT@
6 tinc=../src/tinc@EXEEXT@
7 sptps_test=../src/sptps_test@EXEEXT@
8 sptps_keypair=../src/sptps_keypair@EXEEXT@
12 scriptname=`basename $0`
22 # Default arguments for both tinc and tincd
24 c1="-n $n1 --config=$d1 --pidfile=$d1/pid"
25 c2="-n $n2 --config=$d2 --pidfile=$d2/pid"
26 c3="-n $n3 --config=$d3 --pidfile=$d3/pid"
28 # Arguments when running tincd
30 r1="--logfile=$d1/log -d5"
31 r2="--logfile=$d2/log -d5"
32 r3="--logfile=$d3/log -d5"
34 # Check for leftover tinc daemons
36 [ -f $d1/pid ] && $tinc $c1 stop
37 [ -f $d2/pid ] && $tinc $c2 stop
38 [ -f $d3/pid ] && $tinc $c3 stop
40 # Remove test directories
44 # Exit on errors, log all commands being executed