git.infertux.com bin-scripts / master tor-restart
master

Tree @master (Download .tar.gz)

tor-restart @masterraw · history · blame

#!/bin/bash -u

sudo systemctl restart tor

while true; do
    output="$(sudo systemctl status tor -l)"
    echo "$output"
    echo "$output" | grep '100%' && break
    sleep 3
done