tor-router/shutdown.sh

22 lines
330 B
Bash
Raw Normal View History

2015-07-06 14:21:09 +00:00
#!/bin/bash
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"
2015-07-06 14:40:10 +00:00
iptables -A INPUT -p tcp --dport 9050 -j REJECT
2015-07-06 14:21:09 +00:00
#sleep 5
exit 0