tor-router/shutdown.sh
2015-07-06 10:21:09 -04:00

24 lines
350 B
Bash
Executable file

#!/bin/bash
source env.sh
index="0"
while [ $index -lt $TOR_INSTANCES ]
do
current_instance=$INSTANCE_PREFIX$index
echo "shutting down $current_instance"
docker rm -f $current_instance
index=$[index+1]
done
echo "stop haproxy"
docker rm -f haproxy
echo "closing port"
sudo iptables -A INPUT -p tcp --dport 9050 -j REJECT
#sleep 5
exit 0