Use rest/shutdown to stop

This commit is contained in:
Jakob Borg 2014-05-12 20:48:13 -03:00
parent bae9247d84
commit 30ea9cb37e
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,5 @@
#!/bin/bash
export STNORESTART=1
iterations=${1:-5}
id1=I6KAH7666SLLL5PFXSOAUFJCDZYAOMLEKCP2GB3BV5RQST3PSROA
@ -137,4 +135,6 @@ for ((t = 1; t <= $iterations; t++)) ; do
testConvergence
done
pkill syncthing
for i in 1 2 3 4 ; do
curl -X POST "http://localhost:808$i/rest/shutdown"
done