Advertisement
tolikpunkoff

starttor

Nov 25th, 2019
786
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2. echo "Start tor relay..."
  3. ip netns exec provns sudo -u torusr /usr/local/bin/tor -f /home/torusr/torrc
  4. sleep 5
  5. echo "Starting Polipo proxy..."
  6. if [ -f "/home/torusr/polipo.pid" ]; then
  7.     echo "Removing PID file..."
  8.     rm "/home/torusr/polipo.pid"
  9. else
  10.     echo "Old PID file not found. OK."
  11. fi
  12.  
  13. ip netns exec provns sudo -u torusr /usr/bin/polipo -c /home/torusr/polipo.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement