[tor-commits] [tor-cloud/master] Give tor time to stop

runa at torproject.org runa at torproject.org
Tue Sep 25 10:12:07 UTC 2012


commit a952f01a45b0318a2b34ad5f190be6c12b8122fc
Author: Runa A. Sandvik <runa.sandvik at gmail.com>
Date:   Tue Sep 25 11:11:45 2012 +0100

    Give tor time to stop
---
 ec2-prep.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ec2-prep.sh b/ec2-prep.sh
index f3033ce..7eb2b4a 100644
--- a/ec2-prep.sh
+++ b/ec2-prep.sh
@@ -203,6 +203,7 @@ EOF
 # Edit /var/lib/tor/state and change the obfs port
 /etc/init.d/tor reload
 /etc/init.d/tor stop
+sleep 30s
 sed -i 's/TransportProxy.*/TransportProxy obfs2 0.0.0.0:52176/' /var/lib/tor/state
 echo "Done configuring the system, will reboot"
 echo "Your system has been configured as a Tor obfsproxy bridge, see https://cloud.torproject.org/ for more info" > /etc/ec2-prep.sh



More information about the tor-commits mailing list