########################################################################### ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## ########################################################################### check process tor-01 with pidfile /var/run/tor-instances/01/tor.pid start program "/bin/systemctl restart tor@01" stop program "/bin/systemctl stop tor@01" if failed host 127.0.0.1 port 9051 type tcp then restart if failed host 127.0.0.1 port 8051 type tcp and # password is: tor surrounded by quotes 0x22 send "AUTHENTICATE \0x22tor\0x22\n" expect "250 OK" send "GETINFO status/circuit-established\n" expect "250-status/circuit-established=1" retry 1 timeout 5 seconds then restart