Răsfoiți Sursa

Use rest/shutdown to stop

Jakob Borg 11 ani în urmă
părinte
comite
30ea9cb37e
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      integration/test.sh

+ 3 - 3
integration/test.sh

@@ -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