SHARE
TWEET

starttor

tolikpunkoff Nov 25th, 2019 (edited) 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top