[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-cloud/master] Wait 30s between reloading, stopping, and starting



commit c5d5c227364a57b2fede8dcaea1e1f21f5c8633f
Author: Runa A. Sandvik <runa.sandvik@xxxxxxxxx>
Date:   Tue Sep 25 12:56:38 2012 +0100

    Wait 30s between reloading, stopping, and starting
---
 ec2-prep.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ec2-prep.sh b/ec2-prep.sh
index 5c6e42d..4de2241 100644
--- a/ec2-prep.sh
+++ b/ec2-prep.sh
@@ -202,7 +202,9 @@ EOF
 
 # Edit /var/lib/tor/state and change the obfs port
 /etc/init.d/tor reload
+sleep 30s
 /etc/init.d/tor stop
+sleep 30s
 sed -i 's/TransportProxy.*/TransportProxy obfs2 0.0.0.0:52176/' /var/lib/tor/state
 /etc/init.d/tor start
 sleep 30s

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits