#!/bin/bash echo "Start tor relay..." ip netns exec provns sudo -u torusr /usr/local/bin/tor -f /home/torusr/torrc sleep 5 echo "Starting Polipo proxy..." if [ -f "/home/torusr/polipo.pid" ]; then echo "Removing PID file..." rm "/home/torusr/polipo.pid" else echo "Old PID file not found. OK." fi ip netns exec provns sudo -u torusr /usr/bin/polipo -c /home/torusr/polipo.conf