tor-router/tor-router.sh
2015-07-06 14:26:31 -04:00

16 lines
269 B
Bash
Executable file

#!/bin/bash
wrapdocker &
sleep 5
echo 'starting tor router...'
/usr/local/bin/start-tor-router
docker logs -f haproxy &
docker wait haproxy
echo 'stopping tor router...'
/usr/local/bin/stop-tor-router
start-stop-daemon --stop --pidfile "/var/run/docker.pid"
exit 0