mirror of
https://github.com/octoleo/syncthing.git
synced 2025-03-21 10:12:21 +00:00
Use rest/shutdown to stop
This commit is contained in:
parent
bae9247d84
commit
30ea9cb37e
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export STNORESTART=1
|
|
||||||
|
|
||||||
iterations=${1:-5}
|
iterations=${1:-5}
|
||||||
|
|
||||||
id1=I6KAH7666SLLL5PFXSOAUFJCDZYAOMLEKCP2GB3BV5RQST3PSROA
|
id1=I6KAH7666SLLL5PFXSOAUFJCDZYAOMLEKCP2GB3BV5RQST3PSROA
|
||||||
@ -137,4 +135,6 @@ for ((t = 1; t <= $iterations; t++)) ; do
|
|||||||
testConvergence
|
testConvergence
|
||||||
done
|
done
|
||||||
|
|
||||||
pkill syncthing
|
for i in 1 2 3 4 ; do
|
||||||
|
curl -X POST "http://localhost:808$i/rest/shutdown"
|
||||||
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user