github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/mixnet/scripts/run_router.sh (about)

     1  #!/bin/bash
     2  #first arg is the public facing IP of the router
     3  #second arg is the batch size
     4  
     5  ./initmixnet.sh
     6  source ./define.sh
     7  
     8  # These should be run as root.
     9  $GOPATH/bin/tao host init -tao_domain $DOMAIN -hosting process -root -pass $PASSWORD
    10  sudo -E $GOPATH/bin/tao host start -tao_domain $DOMAIN -host linux_tao_host -pass $PASSWORD &
    11  sleep 2
    12  
    13  port="8000"
    14  directory_file=/tmp/directories
    15  
    16  echo "Starting router..."
    17  $GOPATH/bin/tao run -tao_domain $DOMAIN $DOMAINROOT/mixnet_router --addr $1:$port --dirs $directory_file --config $DOMAIN/tao.config --batch $2